summaryrefslogtreecommitdiff
path: root/tests-clar/diff/tree.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-09-13 14:02:46 -0700
committerBen Straub <bs@github.com>2012-09-19 04:41:24 -0700
commit5bb0dc9390edf9f056cd67c12c258b10d0648871 (patch)
tree2dc8b38a98f66aff909d943ea73fdc05be60e828 /tests-clar/diff/tree.c
parent411cb017c21e0490ed1c6438c7d5fa1b4ee9f63f (diff)
downloadlibgit2-5bb0dc9390edf9f056cd67c12c258b10d0648871.tar.gz
ODB: re-load packfiles on failed lookup
The old method was avoiding re-loading of packfiles by watching the mtime of the pack directory. This causes the ODB to become stale if the directory and packfile are written within the same clock millisecond, as when cloning a fairly small repo. This method tries to find the object in the cached packs, and forces a refresh when that fails. This will cause extra stat'ing on a miss, but speeds up the success case and avoids this race condition.
Diffstat (limited to 'tests-clar/diff/tree.c')
0 files changed, 0 insertions, 0 deletions