]> source.dussan.org Git - jgit.git/commit
dfs: Try to avoid searching UNREACHABLE_GARBAGE during packing 70/102770/5
authorShawn Pearce <spearce@spearce.org>
Wed, 9 Aug 2017 12:22:14 +0000 (05:22 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Feb 2018 19:46:57 +0000 (14:46 -0500)
commitd0fbaf502e5d46c9f19b2c0c5e94ad68b3557670
treede857e4f17fba32dd30aab32c16111b81597583c
parent35bb7ccc4c9ac39a8dd56dc1c192793cf128b171
dfs: Try to avoid searching UNREACHABLE_GARBAGE during packing

If an object can be found in a non-garbage pack, favor that pack over
paging in the garbage pack's idx and pack content.

Only fall back to garbage packs if an object cannot be found and there
are garbage packs present in the repository.  This fallback is
required to correct race conditions during GC.

Change-Id: Ia7c123975bc069b8e6e713eda2d357303b71e329
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java