Bug 509: Improve conflict detection of leaf merges 22/7022/1
authorRobert Varga <rovarga@cisco.com>
Thu, 15 May 2014 14:55:02 +0000 (16:55 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 15 May 2014 15:27:08 +0000 (17:27 +0200)
commitee507922fd030c7dd7f068e770ed3073a9b843e6
treeea1613446f2ef73ace6fe64d1950c6b39e6021db
parenta261052a953b780a6819b7f77b22b3d0244055f4
Bug 509: Improve conflict detection of leaf merges

Original conflict detection for merge action on leaves
only looked at node version and subtree version, which
caused the transaction to fail even if the leaf was
unmodified and contained the same value.

Conflict detection now checks if the leaves are not same,
and only in that case it checks for concurrent writes.

Change-Id: I5e43233e86adf96e3dad2a93cdcf512b3d17977a
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/SchemaAwareApplyOperation.java