]> source.dussan.org Git - jgit.git/commit
Prune UNREACHABLE_GARBAGE packs when they expire 18/76018/1
authorMike Williams <miwilliams@google.com>
Fri, 17 Jun 2016 15:34:36 +0000 (11:34 -0400)
committerShawn Pearce <spearce@spearce.org>
Mon, 27 Jun 2016 15:38:11 +0000 (08:38 -0700)
commitfd527a2cd7ec14b8ea592a3a41d60367924a6f9f
tree6a33ff526c849ede69dc5035e15847a7bbcb2375
parenta1ca13e09c0af1ae91bd51170b37eb62d4eb225e
Prune UNREACHABLE_GARBAGE packs when they expire

DfsGarbageCollector will now enforce a maximum time to live (TTL) for
UNREACHABLE_GARBAGE packs.  The default TTL is 1 day, which should be
enough time to avoid races with other processes that are inserting
data into the repository.

Change-Id: Id719e6e2a03cfc9a0c0aef8ed71d261dda14bd0c
Signed-off-by: Mike Williams <miwilliams@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollectorTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java