Details
-
Bug
-
Resolution: Done
-
Minor
-
9.0.0.Alpha2, 8.2.2.Final
-
None
Description
cdl.localNodeIsPrimaryOwner(key) || (cdl.localNodeIsOwner(key) && !ctx.isOriginLocal()) computes the owner twice. In replicated mode, the localNodeIsOwner() is cheaper, so it's better to call localNodeIsPrimaryOwner() only on the originator.