BUG-650: speedup DOMDataBrokerTransactionChainImpl
authorRobert Varga <rovarga@cisco.com>
Fri, 12 Sep 2014 13:29:09 +0000 (15:29 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 13 Sep 2014 00:49:59 +0000 (02:49 +0200)
commit83dfb35e33b6efd1bac650193c619ab5d9fb0fea
treea1fe8feda153aca82534fe2008185179350c5eec
parentfc49220118e0bae3810f2ab722ff804c682921dc
BUG-650: speedup DOMDataBrokerTransactionChainImpl

The transaction chain implementation does not need to have
synchronization on submit, but rather it needs to check if the chain has
not been closed (implictly or explicitly). Same goes for the close path,
thus this patch speeds things up by downgrading the synchronized
sections to volatile reads and writes.

Change-Id: I57dec6dbfb1933005a9ee0718b666ee102ce7116
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/DOMDataBrokerTransactionChainImpl.java