jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1528464 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java
Date Wed, 02 Oct 2013 13:22:25 GMT
Author: mreutegg
Date: Wed Oct  2 13:22:25 2013
New Revision: 1528464

URL: http://svn.apache.org/r1528464
Log:
OAK-1072: Remove unnecessary cache invalidation

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=1528464&r1=1528463&r2=1528464&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
Wed Oct  2 13:22:25 2013
@@ -1145,14 +1145,10 @@ public class MongoMK implements MicroKer
         commit.removeNode(path);
 
         if (subTreeAlso) {
-
             // recurse down the tree
             // TODO causes issue with large number of children
             Node n = getNode(path, rev);
 
-            // remove from the cache
-            nodeCache.invalidate(path + "@" + rev);
-
             if (n != null) {
                 Node.Children c = getChildren(path, rev, Integer.MAX_VALUE);
                 for (String childPath : c.children) {
@@ -1161,9 +1157,6 @@ public class MongoMK implements MicroKer
                 nodeChildrenCache.invalidate(n.getId());
             }
         }
-
-        // Remove the node from the cache
-        nodeCache.invalidate(path + "@" + rev);
     }
 
     public static void parseAddNode(Commit commit, JsopReader t, String path) {



Mime
View raw message