Do not read bridge node multiple times 51/110551/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Mar 2024 17:32:12 +0000 (18:32 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Mar 2024 17:32:12 +0000 (18:32 +0100)
commit8da49ce94fa70977a3705469fb83906d57f0c308
tree5ef6b253ebbe5e6e2a3842f7b82c714446baa2ec
parent4d6c37440b1d80cff6caa599a8bcca4c195ebef7
Do not read bridge node multiple times

We have guards against non-existing bridge nodes, but when they succeed
we throw away the data we have read. This can lead to theoretical TOCTOE
errors.

Fix this by only reading the bridge node once.

Change-Id: I5e224b350d3c4f5e05d1366fa8f4282b6834dba8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QueueUpdateCommand.java