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>
This commit is contained in:
Terry Parker 2015-06-02 19:40:14 -07:00 committed by Shawn Pearce
parent a79168bcbb
commit dd22bc831a
1 changed files with 2 additions and 0 deletions

View File

@ -1764,6 +1764,7 @@ private void findObjectsToPack(final ProgressMonitor countingMonitor,
countingMonitor.update((int) pack.getObjectCount());
endPhase(countingMonitor);
stats.timeCounting = System.currentTimeMillis() - countingStart;
stats.bitmapIndexMisses = -1;
}
private void findObjectsToPackUsingBitmaps(
@ -2171,6 +2172,7 @@ public long getTotalObjects() {
/**
* @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
*/