-
- Downloads
You need to sign in or sign up before continuing.
Add `numberOfPackFilesAfterBitmap` to RepoStatistics
Introduce a `numberOfPackFilesAfterBitmap` that contains the number of packfiles created since the latest bitmap generation. Notes: * the `repo.getObjectDatabase().getPacks()` that obtains the list of packs (in the existing `getStatistics` function) uses `PackDirectory.scanPacks` that boils down to call `PackDirectory.scanPacksImpl` which is sorting packs prior returning them therefore the `numberOfPackFilesAfterBitmap` is just all packs before the one that has bitmap attached * the improved version of `packAndPrune` function (one that skips non-existent packfiles) was introduced for testing Change-Id: I608011462f104fc002ac527aa405f492a8a4b0c2
Showing
- org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcNumberOfPackFilesAfterBitmapStatisticsTest.java 173 additions, 0 deletions...ge/file/GcNumberOfPackFilesAfterBitmapStatisticsTest.java
- org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java 12 additions, 1 deletion...e.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
Loading
Please register or sign in to comment