LUCENE-9322: fix minor cosmetic refactoring error in logging string in IndexWriter's infoStream logging. It was always printing 'vector values' for all merging times instead of the other parts of Lucene index ('doc values', 'stored fields', etc.)

This commit is contained in:
Mike McCandless 2020-11-09 12:47:15 -05:00
parent 8be0cea544
commit ec9a659845
1 changed files with 2 additions and 3 deletions

View File

@ -224,7 +224,7 @@ final class SegmentMerger {
int numMerged = merger.merge();
if (mergeState.infoStream.isEnabled("SM")) {
long t1 = System.nanoTime();
mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge vector values [" + numMerged + " docs]");
mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge " + formatName + " [" + numMerged + " docs]");
}
return numMerged;
}
@ -237,8 +237,7 @@ final class SegmentMerger {
merger.merge();
if (mergeState.infoStream.isEnabled("SM")) {
long t1 = System.nanoTime();
mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge vector values [" + numMerged + " docs]");
mergeState.infoStream.message("SM", ((t1 - t0) / 1000000) + " msec to merge " + formatName + " [" + numMerged + " docs]");
}
}
}