LUCENE-8599: Add hasNoValue bitset to ramBytesUsed calculation

This commit is contained in:
Simon Willnauer 2018-12-11 22:35:17 +01:00
parent ade7546ad2
commit 61e448666d
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ abstract class DocValuesFieldUpdates implements Accountable {
@Override
public long ramBytesUsed() {
return super.ramBytesUsed() + bitSet.ramBytesUsed();
return super.ramBytesUsed() + bitSet.ramBytesUsed() + (hasNoValue == null ? 0 : hasNoValue.ramBytesUsed());
}
@Override