mreutegg commented on code in PR #874:
URL: https://github.com/apache/jackrabbit-oak/pull/874#discussion_r1149218314


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/AbstractDocumentNodeState.java:
##########
@@ -127,6 +128,48 @@ public boolean compareAgainstBaseState(NodeState base, 
NodeStateDiff diff) {
                     }
                 }
             }
+        } else if (base instanceof ModifiedNodeState) {
+            ModifiedNodeState mBase = (ModifiedNodeState) base;
+            if (mBase.getBaseState() == this) {
+                // this is the base state of the ModifiedNodeState
+                // do a reverse comparison and report the inverse back to 
NodeStateDiff
+                return mBase.compareAgainstBaseState(this, new NodeStateDiff() 
{

Review Comment:
   Makes sense. Was thinking about this as well, but too lazy to actually do it 
:-/



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to