Release permits as transactions are replayed 40/70840/8
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 12 Apr 2018 11:11:38 +0000 (13:11 +0200)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Thu, 12 Apr 2018 17:34:40 +0000 (17:34 +0000)
commitc98f76accf3ade617e502fc39e3cae5280c28350
treefd2a3e081e2b129acb122e25a0fb609e53c65c02
parentdc295d9be77748d7e695d003a02d299d493abc8d
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