]> source.dussan.org Git - jgit.git/commit
DfsObjDatabase: clear PackList dirty bit if no new packs 74/79374/2
authorShawn Pearce <spearce@spearce.org>
Fri, 19 Aug 2016 18:51:40 +0000 (11:51 -0700)
committerShawn Pearce <spearce@spearce.org>
Fri, 19 Aug 2016 19:06:03 +0000 (12:06 -0700)
commitf15e9c088a6c50d96789fbeba04bb3272a5d3d4d
treeb5baef1cb0b789fe452867ad1ddfb8287f3250b6
parent13f0db25f272e29b607c5b0e01a3b0d612731794
DfsObjDatabase: clear PackList dirty bit if no new packs

If a reference was updated more recently than a pack was written
(typical) the PackList was perpetually dirty until the next GC
was completed for the repository.

Detect this condition by observing no changes to the PackList
membership and resetting the dirty bit.

Change-Id: Ie2133aca1f8083307c73b6a26358175864f100ef
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java