Skip to content
Snippets Groups Projects
Commit c564be351754 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

rev-branch-cache: stop truncating cache file

Truncating the file prevent the safe use of mmap. So instead of overwrite the
existing data. If more than 20% of the file is to be overwritten, we rewrite the
whole file instead.

Such whole rewrite is done by replacing the old one with a new one, so mmap of
the old file would be affected.

This prepare a more aggressive use of mmap in later patches.
parent 7032da075572
No related branches found
No related tags found
5 merge requests!1041Merge default into stable,!997tests: use shlex.quote instead of pipes.quote,!958rev-branch-cache: move to a "v2" naming,!957rev-branch-cache: stop truncating,!956make rev branch cache mmaped by default
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment