]> source.dussan.org Git - jgit.git/commit
Delete expired garbage even when there is no GC pack present. 99/95499/5
authorThirumala Reddy Mutchukota <thirumala@google.com>
Fri, 21 Apr 2017 19:26:33 +0000 (12:26 -0700)
committerThirumala Reddy Mutchukota <thirumala@google.com>
Fri, 21 Apr 2017 21:06:58 +0000 (14:06 -0700)
commit5e250e45befd07e1d9893c6dde4c43059c5d8fd9
tree6ebb15ba80b20c91f3d815de2978edff4d8fdc5b
parent6a4b8212689f0633b1504855f5183940f5657258
Delete expired garbage even when there is no GC pack present.

Delete the condition to check whether the garbage pack creation time
is older than the last GC operation, because it's not possible to
find the last GC operation time when there is no GC pack.

Add additional tests to make sure the contents of the expired garbage
packs are considered during the GC operation and any actively
referenced objects from the garbage packs are copied successfully
into the GC pack before deleting the garbage pack.

Change-Id: I09e8b2656de8ba7f9b996724ad1961d908e937b6
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