LUCENE-10111: Missing calculating the bytes used of DocsWithFieldSet in NormValuesWriter (#307)

This commit is contained in:
Lu Xugang 2021-09-22 13:44:30 +08:00 committed by GitHub
parent a7578709a6
commit a7bddfaacc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -420,6 +420,9 @@ Bug Fixes
* LUCENE-10110: MultiCollector now handles single leaf collector that wants to skip low-scoring hits
but the combined score mode doesn't allow it. (Jim Ferenczi)
* LUCENE-10111: Missing calculating the bytes used of DocsWithFieldSet in NormValuesWriter.
(Lu Xugang)
Build
---------------------

View File

@ -60,7 +60,7 @@ class NormValuesWriter {
}
private void updateBytesUsed() {
final long newBytesUsed = pending.ramBytesUsed();
final long newBytesUsed = pending.ramBytesUsed() + docsWithField.ramBytesUsed();
iwBytesUsed.addAndGet(newBytesUsed - bytesUsed);
bytesUsed = newBytesUsed;
}