BUG 4968: Clear transaction after proxy tx is submitted. 35/32935/2
authorTomas Cere <tcere@cisco.com>
Mon, 18 Jan 2016 13:48:42 +0000 (14:48 +0100)
committerTomas Cere <tcere@cisco.com>
Mon, 18 Jan 2016 13:49:32 +0000 (14:49 +0100)
Change-Id: I2038a25cdd0ae17e6517a1f0ac375850a3c17479
Signed-off-by: Tomas Cere <tcere@cisco.com>
opendaylight/netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/pipeline/NetconfDeviceMasterDataBroker.java

index f210820ccdf71a886f0fb0203dae12e22572e254..dbc11e411809b4f6fd0a3d7d43e67ff742c0ca73 100644 (file)
@@ -178,11 +178,13 @@ public class NetconfDeviceMasterDataBroker implements ProxyNetconfDeviceDataBrok
             @Override
             public void onSuccess(Void result) {
                 promise.success(result);
+                writeTx = null;
             }
 
             @Override
             public void onFailure(Throwable t) {
                 promise.failure(t);
+                writeTx = null;
             }
         });
         return promise.future();
@@ -197,11 +199,13 @@ public class NetconfDeviceMasterDataBroker implements ProxyNetconfDeviceDataBrok
             @Override
             public void onSuccess(RpcResult<TransactionStatus> result) {
                 promise.success(result);
+                writeTx = null;
             }
 
             @Override
             public void onFailure(Throwable t) {
                 promise.failure(t);
+                writeTx = null;
             }
         });
         return promise.future();