jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1410616 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelRootBuilder.java
Date Fri, 16 Nov 2012 22:55:52 GMT
Author: mduerig
Date: Fri Nov 16 22:55:51 2012
New Revision: 1410616

URL: http://svn.apache.org/viewvc?rev=1410616&view=rev
Log:
OAK-451: Disable update functionality in KernelRootBuilder

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelRootBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelRootBuilder.java?rev=1410616&r1=1410615&r2=1410616&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelRootBuilder.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelRootBuilder.java
Fri Nov 16 22:55:51 2012
@@ -16,20 +16,19 @@
  */
 package org.apache.jackrabbit.oak.kernel;
 
-import static com.google.common.base.Preconditions.checkNotNull;
-import static org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.collapse;
-
 import java.util.Map;
 import java.util.Set;
 
+import com.google.common.collect.Maps;
+import com.google.common.collect.Sets;
 import org.apache.jackrabbit.mk.api.MicroKernel;
 import org.apache.jackrabbit.mk.json.JsopBuilder;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder;
 import org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 
-import com.google.common.collect.Maps;
-import com.google.common.collect.Sets;
+import static com.google.common.base.Preconditions.checkNotNull;
+import static org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.collapse;
 
 class KernelRootBuilder extends MemoryNodeBuilder {
 
@@ -37,7 +36,8 @@ class KernelRootBuilder extends MemoryNo
      * Number of content updates that need to happen before the updates
      * are automatically committed to a branch in the MicroKernel.
      */
-    private static final int UPDATE_LIMIT = 10000;
+    private static final int UPDATE_LIMIT =
+            Integer.getInteger("update.limit", Integer.MAX_VALUE);
 
     private final MicroKernel kernel;
 



Mime
View raw message