commit | 8d256110df35992b11f3cd187245da26462d65a1 | [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:52:22 2020 +0000 |
tree | 2ee188d1a7a4ef3330fe9861b59ba8f053bc635a | |
parent | 9fbe116ab993f0d546af8727e73e121725802df9 [diff] |
[ONOS-8130] Correct and cosistent access to message-id counter in NetconfSessionMinaImpl Change-Id: If27435c5ff9e1855696246326243eabe92a20335 (cherry picked from commit fb362174e130f6882d3682eaa26f2a46c2108f3d)
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);