Release permits as transactions are replayed 66/70966/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:29 +0000 (08:56 +0000)
commitb4dfd7a8427e3e9b6f273aa37e257206a5af363f
tree71a6cd0c4840bcd9d7faa98ff832577b78c127d2
parent1921fc8432ff179b9d71486d7b09d4af79c62d7e
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