jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1516143 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java
Date Wed, 21 Aug 2013 12:14:27 GMT
Author: mreutegg
Date: Wed Aug 21 12:14:27 2013
New Revision: 1516143

URL: http://svn.apache.org/r1516143
Log:
OAK-971: More accurate cache weight for AbstractNode

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java?rev=1516143&r1=1516142&r2=1516143&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/model/AbstractNode.java
Wed Aug 21 12:14:27 2013
@@ -176,7 +176,10 @@ public abstract class AbstractNode imple
             memory += 2 * e.getKey().length();
             memory += 2 * e.getValue().length();
         }
-        
+        if (childEntries.inlined()) {
+            memory += childEntries.getMemory();
+        }
+
         return memory;
     }
 



Mime
View raw message