diff options
author | Terry Parker <tparker@google.com> | 2015-06-02 19:40:14 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2015-06-02 22:49:55 -0400 |
commit | dd22bc831a0ec47ecc999eb19be1bd8fad899e9b (patch) | |
tree | 8e4842779b278c3a2ca9f179986dad940db9d1be | |
parent | a79168bcbb991c2efe40b4e041dae256b408af92 (diff) | |
download | jgit-dd22bc831a0ec47ecc999eb19be1bd8fad899e9b.tar.gz jgit-dd22bc831a0ec47ecc999eb19be1bd8fad899e9b.zip |
Update PackWriter.Statistics.getBitmapIndexMises()
Return -1 from PackWriter.Statistics.getBitmapIndexMises() when no
bitmap indices were found, to differentiate it from the case where
the bitmap indices contained all of the want/have commits.
Change-Id: I78d4600b462c19f62b347217a0b2c19eaaf3a14b
Signed-off-by: Terry Parker <tparker@google.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java index adc6bf11ab..85533d6a33 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java @@ -1764,6 +1764,7 @@ public class PackWriter implements AutoCloseable { countingMonitor.update((int) pack.getObjectCount()); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; + stats.bitmapIndexMisses = -1; } private void findObjectsToPackUsingBitmaps( @@ -2171,6 +2172,7 @@ public class PackWriter implements AutoCloseable { /** * @return the count of objects that needed to be discovered through an * object walk because they were not found in bitmap indices. + * Returns -1 if no bitmap indices were found. * * @since 4.0 */ |