jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1457756 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Date Mon, 18 Mar 2013 13:24:37 GMT
Author: mreutegg
Date: Mon Mar 18 13:24:37 2013
New Revision: 1457756

URL: http://svn.apache.org/r1457756
Log:
OAK-698: Optimize handling of empty node states
- Return immediately after special case

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java?rev=1457756&r1=1457755&r2=1457756&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeState.java
Mon Mar 18 13:24:37 2013
@@ -315,6 +315,7 @@ public final class KernelNodeState exten
             return; // no differences
         } else if (base == EMPTY_NODE) {
             EmptyNodeState.compareAgainstEmptyState(this, diff); // special case
+            return;
         } else if (base instanceof KernelNodeState) {
             KernelNodeState kbase = (KernelNodeState) base;
             if (kernel.equals(kbase.kernel)) {



Mime
View raw message