Optimize empty transactions
authorRobert Varga <rovarga@cisco.com>
Tue, 18 Feb 2014 08:34:14 +0000 (09:34 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 18 Feb 2014 08:48:32 +0000 (09:48 +0100)
commitc257b969db4765b43999a43cdeccc32b78ef8cf7
treeae8baa50f9095b16e2d01934c278f508eb5791d8
parent79155df192f0e2220b6eb1ea4cd43b95462a27a1
Optimize empty transactions

This is a micro-optimization: if we know there are no affected paths,
we used to spin an entire transaction -- which ended up revalidating an
empty delta. Let's skip the entire circus and proceed to commit
directly.

Change-Id: Ia6250663c01348dd08610c2a44dc01743761a05c
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/service/AbstractDataBroker.java
opendaylight/md-sal/sal-common-impl/src/main/java/org/opendaylight/controller/md/sal/common/impl/service/TwoPhaseCommit.java