commit | fb362174e130f6882d3682eaa26f2a46c2108f3d | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Fri Dec 04 14:06:18 2020 +0100 |
committer | Andrea Campanella <andrea@opennetworking.org> | Fri Dec 04 14:06:18 2020 +0100 |
tree | cfc85a154c62a03d5d32f884ab25fb15e6c28a20 | |
parent | de3e6f52c814f50d6696bf84d363f762e8ee6fab [diff] |
[ONOS-8130] Correct and cosistent access to message-id counter in NetconfSessionMinaImpl Change-Id: If27435c5ff9e1855696246326243eabe92a20335
diff --git a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java index 22bb2b8..f45c877 100644 --- a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java +++ b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
@@ -580,7 +580,7 @@ String rpc = request; // - assign message-id - int msgId = messageIdInteger.incrementAndGet(); + int msgId = messageIdInteger.getAndIncrement(); // - re-write request to insert message-id // FIXME avoid using formatRequestMessageId rpc = formatRequestMessageId(rpc, msgId);