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>
countingMonitor.update((int) pack.getObjectCount());
endPhase(countingMonitor);
stats.timeCounting = System.currentTimeMillis() - countingStart;
+ stats.bitmapIndexMisses = -1;
}
private void findObjectsToPackUsingBitmaps(
/**
* @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
*/