jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1539561 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java
Date Thu, 07 Nov 2013 08:56:34 GMT
Author: mreutegg
Date: Thu Nov  7 08:56:33 2013
New Revision: 1539561

URL: http://svn.apache.org/r1539561
Log:
OAK-1080: MongoMK: improved concurrency
- avoid unnecessary equals on persist. the underlying implementations can deal with the case
when there are no changes.

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java?rev=1539561&r1=1539560&r2=1539561&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/AbstractNodeStoreBranch.java
Thu Nov  7 08:56:33 2013
@@ -487,9 +487,7 @@ public abstract class AbstractNodeStoreB
         }
 
         private void persistTransientHead(NodeState newHead) {
-            if (!newHead.equals(head)) {
-                head = AbstractNodeStoreBranch.this.persist(newHead, head, null);
-            }
+            head = AbstractNodeStoreBranch.this.persist(newHead, head, null);
         }
     }
 



Mime
View raw message