We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da1942 commit 059b73cCopy full SHA for 059b73c
server/src/main/java/org/elasticsearch/index/engine/Engine.java
@@ -315,7 +315,7 @@ protected static ShardFieldStats shardFieldStats(List<LeafReaderContext> leaves)
315
// This almost does what FixedBitSet#ramBytesUsed() does, liveDocs.length() returns the length of the bits long
316
// array
317
liveDocsBytes += RamUsageEstimator.alignObjectSize(
318
- (long) RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long) Long.BYTES * liveDocs.length()
+ (long) RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long)(liveDocs.length() / 8)
319
);
320
}
321
0 commit comments