mirror of https://github.com/apache/lucene.git
LUCENE-10111: Missing calculating the bytes used of DocsWithFieldSet in NormValuesWriter (#307)
This commit is contained in:
parent
a7578709a6
commit
a7bddfaacc
|
@ -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
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue