jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1497784 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java
Date Fri, 28 Jun 2013 14:06:45 GMT
Author: alexparvulescu
Date: Fri Jun 28 14:06:45 2013
New Revision: 1497784

URL: http://svn.apache.org/r1497784
Log:
OAK-863 - Enable stats for various caches used in Oak by default
- fixed max weight param in NodeChildren and DiffCache stat output 

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java?rev=1497784&r1=1497783&r2=1497784&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java
Fri Jun 28 14:06:45 2013
@@ -236,7 +236,7 @@ public class MongoMK implements MicroKer
                         .maximumWeight(builder.getChildrenCacheSize())
                         .build();
         nodeChildrenCacheStats = new CacheStats(nodeChildrenCache, "MongoMk-NodeChildren",
-                builder.getWeigher(), builder.getNodeCacheSize());
+                builder.getWeigher(), builder.getChildrenCacheSize());
 
         diffCache = CacheBuilder.newBuilder()
                 .recordStats()
@@ -244,7 +244,7 @@ public class MongoMK implements MicroKer
                 .maximumWeight(builder.getDiffCacheSize())
                 .build();
         diffCacheStats = new CacheStats(diffCache, "MongoMk-DiffCache",
-                builder.getWeigher(), builder.getNodeCacheSize());
+                builder.getWeigher(), builder.getDiffCacheSize());
 
         init();
         // initial reading of the revisions of other cluster nodes



Mime
View raw message