jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1501669 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java
Date Wed, 10 Jul 2013 08:25:46 GMT
Author: thomasm
Date: Wed Jul 10 08:25:46 2013
New Revision: 1501669

URL: http://svn.apache.org/r1501669
Log:
OAK-863 - Refactor caching in MongoMK; fix LIRS cache stats

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java?rev=1501669&r1=1501668&r2=1501669&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheLIRS.java
Wed Jul 10 08:25:46 2013
@@ -761,7 +761,6 @@ public class CacheLIRS<K, V> implements 
             mapSize++;
             // added entries are always added to the stack
             addToStack(e);
-            missCount++;
             return old;
         }
 
@@ -835,6 +834,7 @@ public class CacheLIRS<K, V> implements 
             while (usedMemory > maxMemory && queueSize > 1) {
                 Entry<K, V> e = queue.queuePrev;
                 usedMemory -= e.memory;
+                evictionCount++;
                 removeFromQueue(e);
                 e.value = null;
                 e.memory = 0;



Mime
View raw message