Release permits as transactions are replayed 67/70967/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 12 Apr 2018 11:11:38 +0000 (13:11 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 16 Apr 2018 08:56:41 +0000 (08:56 +0000)
commit489279ae04fcacc53042a1a886e24547674fddbd
tree7100a23188c9e86a84536dff822ec5e0a60c1e39
parentd6a2de22e12b36ac43cfc5f68e62331ec1194b83
Release permits as transactions are replayed

Since we have correct accounting at the cost of needing to finish
the transition to new context in user thread, we need to make sure
we release permits as we push them towards the TransactionContext
if it is not handling it itself -- hence the user threads will not
be charged for operations which have logically been completed.

CONTROLLER-1825
Change-Id: I4bae984b08b99a042766d0a41475110781ef8377
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionContextWrapper.java