]> source.dussan.org Git - jgit.git/commit
Reintroduce garbage pack coalescing when ttl > 0. 65/90465/4
authorThirumala Reddy Mutchukota <thirumala@google.com>
Mon, 6 Feb 2017 22:08:27 +0000 (14:08 -0800)
committerThirumala Reddy Mutchukota <thirumala@google.com>
Wed, 8 Feb 2017 04:34:31 +0000 (20:34 -0800)
commit006f4d4d29eecc3d357b442cc76b76fdeff51de0
tree4c7fac77e68025f8bb219e585bdc7b0c179a3d41
parentd4bd09b78daa733933a15733bc6ebbaa0a0485f1
Reintroduce garbage pack coalescing when ttl > 0.

Disabling the garbage pack coalescing when garbageTtl > 0 can result in
lot of garbage packs if they are created within the garbageTtl time.

To avoid a large number of garbage packs, re-introducing garbage pack
coalescing for the packs that are created within a single calendar day
when the garbageTtl is more than one day or one third of the garbageTtl.

Change-Id: If969716aeb55fb4fd0ff71d75f41a07638cd5a69
Signed-off-by: Thirumala Reddy Mutchukota <thirumala@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollectorTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java