Remove lock out of the congested/reuse case 23/13123/4
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)
commitea292acfe7396e1813f7cc56f6002d2b59ee18c2
treec7861fc243231af4b002355aa9ed5aedff17711c
parent47fa9420d40b32832b2de368591e23911eb401dd
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