lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [1/8] lucene-solr:jira/http2: LUCENE-8599: Add hasNoValue bitset to ramBytesUsed calculation
Date Wed, 12 Dec 2018 10:01:51 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/http2 d34e04534 -> ca9df4587


LUCENE-8599: Add hasNoValue bitset to ramBytesUsed calculation


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/61e44866
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/61e44866
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/61e44866

Branch: refs/heads/jira/http2
Commit: 61e448666d56c20c37dfb825ec14ffe697d000ff
Parents: ade7546
Author: Simon Willnauer <simonw@apache.org>
Authored: Tue Dec 11 22:35:17 2018 +0100
Committer: Simon Willnauer <simonw@apache.org>
Committed: Tue Dec 11 22:36:12 2018 +0100

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/index/DocValuesFieldUpdates.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/61e44866/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java b/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java
index c514ad0..464a7f2 100644
--- a/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java
+++ b/lucene/core/src/java/org/apache/lucene/index/DocValuesFieldUpdates.java
@@ -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


Mime
View raw message