jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1504494 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java
Date Thu, 18 Jul 2013 14:50:48 GMT
Author: jukka
Date: Thu Jul 18 14:50:48 2013
New Revision: 1504494

URL: http://svn.apache.org/r1504494
Log:
OAK-630: SegmentMK: Implement compareAgainstBaseState

Avoid one more hard equals() call

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java?rev=1504494&r1=1504493&r2=1504494&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/Template.java
Thu Jul 18 14:50:48 2013
@@ -531,7 +531,7 @@ public class Template {
                         String key, RecordId before, RecordId after) {
                     SegmentNodeState b = new SegmentNodeState(store, before);
                     SegmentNodeState a = new SegmentNodeState(store, after);
-                    return a.equals(b) || diff.childNodeChanged(key, b, a);
+                    return fastEquals(a, b) || diff.childNodeChanged(key, b, a);
                 }
                 @Override
                 public boolean entryDeleted(String key, RecordId before) {



Mime
View raw message