Release permits as transactions are replayed 65/70965/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 12 Apr 2018 11:11:38 +0000 (13:11 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 18 Apr 2018 07:20:01 +0000 (07:20 +0000)
commit57775303636cc55b83430eb2eef3fa589129e8b6
treee4bcd0b967456857bd90e0ff7b76bc7765384a66
parentb6e1ef5ad693018dfb0a9b5b03b570ba3dc295de
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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.