Remove lock out of the congested/reuse case
authorRobert Varga <rovarga@cisco.com>
Mon, 24 Nov 2014 23:04:34 +0000 (00:04 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 7 Jan 2015 15:10:48 +0000 (15:10 +0000)
commit2dca5a057b09ec4f7c3fc03d06e12e2596e9c8b9
tree1c7979105865339d4de22dedde5f097da9b30b3e
parent481c5ed9ec81000eb375bbbb76a1a3bad0806cb3
Remove lock out of the congested/reuse case

Reusing a transaction is a simple state transition inside the chain,
which helps the system throughput, since more changes will be packed in
a single transaction.

This patch optimizes this reuse as a fast path which is performed
without taking the lock on the assumption that this will allow better
code movement.

Change-Id: Idd8ba65c0d45c7ceea42d50ea3a6a521e0123733
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/PingPongTransactionChain.java