LUCENE-9827: Propagate `numChunks` through bulk merges.

This commit is contained in:
Adrien Grand 2021-04-08 16:45:13 +02:00
parent 779e00542c
commit e510ef11c2
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ public final class Lucene90CompressingStoredFieldsWriter extends StoredFieldsWri
}
// since we bulk merged all chunks, we inherit any dirty ones from this segment.
numChunks += matchingFieldsReader.getNumChunks();
numDirtyChunks += matchingFieldsReader.getNumDirtyChunks();
numDirtyDocs += matchingFieldsReader.getNumDirtyDocs();
} else {