jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1547013 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
Date Mon, 02 Dec 2013 13:21:07 GMT
Author: mreutegg
Date: Mon Dec  2 13:21:07 2013
New Revision: 1547013

URL: http://svn.apache.org/r1547013
Log:
OAK-1248: Return early in Commit.markChanged() when parent is already marked

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java?rev=1547013&r1=1547012&r2=1547013&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Commit.java
Mon Dec  2 13:21:07 2013
@@ -487,7 +487,9 @@ public class Commit {
             throw new IllegalArgumentException("path: " + path);
         }
         while (true) {
-            modifiedNodes.add(path);
+            if (!modifiedNodes.add(path)) {
+                break;
+            }
             if (PathUtils.denotesRoot(path)) {
                 break;
             }



Mime
View raw message