IMDS: trim down commit overhead
authorRobert Varga <rovarga@cisco.com>
Wed, 22 Apr 2015 14:17:57 +0000 (16:17 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 23 Apr 2015 11:29:18 +0000 (13:29 +0200)
commit91d8726ef515232fd164ee9be83acff4071a10e5
tree6616afd2c99c38540563d2f8834f5f6e8618482a
parent6f8e5b3c48026298d51d4abf45e8679ae7909849
IMDS: trim down commit overhead

After refactoring things out it is quite obvious that we can skip adding
a listener to the commit cohort when committing a chained transaction.

Extract the inner class from InMemoryDOMDataStore so it can be reused
and subclass it in ChainedTransactionCommitImpl. That makes it also
obvious our commit cannot fail.

Change-Id: I71d9fa60cf63d826ba066c381d8db91af7f8f31e
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ChainedTransactionCommitImpl.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/DOMStoreTransactionChainImpl.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMStoreThreePhaseCommitCohort.java [new file with mode: 0644]