BUG-650: speedup DOMDataBrokerTransactionChainImpl 05/11105/3
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)
commit8148d0748c1578d928fde08f2875b65f9b09e04a
tree965c54d16851a9c553a2a0b57e79fd7c75b3472d
parentcc0542591cd61d968af7083409730f24954feae1
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