jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1404659 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core: RootImpl.java TreeImpl.java
Date Thu, 01 Nov 2012 16:24:03 GMT
Author: mduerig
Date: Thu Nov  1 16:24:03 2012
New Revision: 1404659

URL: http://svn.apache.org/viewvc?rev=1404659&view=rev
Log:
better name for internal method

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java?rev=1404659&r1=1404658&r2=1404659&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Thu Nov  1 16:24:03 2012
@@ -58,7 +58,7 @@ import static org.apache.jackrabbit.oak.
 public class RootImpl implements Root {
 
     /**
-     * Number of {@link #purge()} calls for which changes are kept in memory.
+     * Number of {@link #updated} calls for which changes are kept in memory.
      */
     private static final int PURGE_LIMIT = 100;
 
@@ -79,7 +79,7 @@ public class RootImpl implements Root {
     private TreeImpl rootTree;
 
     /**
-     * Number of {@link #purge()} occurred so since the lase
+     * Number of {@link #updated} occurred so since the lase
      * purge.
      */
     private int modCount;
@@ -339,7 +339,7 @@ public class RootImpl implements Root {
     }
 
     // TODO better way to determine purge limit. See OAK-175
-    void purge() {
+    void updated() {
         if (++modCount > PURGE_LIMIT) {
             modCount = 0;
             purgePendingChanges();

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java?rev=1404659&r1=1404658&r2=1404659&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Thu Nov  1 16:24:03 2012
@@ -277,7 +277,7 @@ public class TreeImpl implements Tree, P
                                 .addValue(name)
                                 .getPropertyState(true));
             }
-            root.purge();
+            root.updated();
         }
 
         TreeImpl child = getChild(name);
@@ -303,7 +303,7 @@ public class TreeImpl implements Tree, P
                                 .getPropertyState(true)
                 );
             }
-            root.purge();
+            root.updated();
             return true;
         } else {
             return false;
@@ -351,7 +351,7 @@ public class TreeImpl implements Tree, P
         // concatenate head, this name and tail
         parent.getNodeBuilder().setProperty(MultiStringPropertyState.stringProperty(OAK_CHILD_ORDER,
Iterables.concat(head, Collections.singleton(getName()), tail))
         );
-        root.purge();
+        root.updated();
         return true;
     }
 
@@ -360,7 +360,7 @@ public class TreeImpl implements Tree, P
         root.checkLive();
         NodeBuilder builder = getNodeBuilder();
         builder.setProperty(property);
-        root.purge();
+        root.updated();
     }
 
     @Override
@@ -368,7 +368,7 @@ public class TreeImpl implements Tree, P
         root.checkLive();
         NodeBuilder builder = getNodeBuilder();
         builder.setProperty(name, value);
-        root.purge();
+        root.updated();
     }
 
     @Override
@@ -376,7 +376,7 @@ public class TreeImpl implements Tree, P
         root.checkLive();
         NodeBuilder builder = getNodeBuilder();
         builder.setProperty(name, value, type);
-        root.purge();
+        root.updated();
     }
 
     @Override
@@ -384,7 +384,7 @@ public class TreeImpl implements Tree, P
         root.checkLive();
         NodeBuilder builder = getNodeBuilder();
         builder.removeProperty(name);
-        root.purge();
+        root.updated();
     }
 
     @Override



Mime
View raw message