jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1526123 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Date Wed, 25 Sep 2013 08:03:02 GMT
Author: mreutegg
Date: Wed Sep 25 08:03:02 2013
New Revision: 1526123

URL: http://svn.apache.org/r1526123
Log:
OAK-1038: Inaccurate size estimate for KernelNodeState

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java?rev=1526123&r1=1526122&r2=1526123&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Wed Sep 25 08:03:02 2013
@@ -586,7 +586,8 @@ public final class KernelNodeState exten
                         && propState.getType() != Type.BINARIES) {
                     // assume binaries go into blob store
                     for (int i = 0; i < propState.count(); i++) {
-                        memory += propState.size(i);
+                        // size() returns length of string
+                        memory += 12 + propState.size(i) * 2;
                     }
                 }
             }



Mime
View raw message