summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Wilson <twilson@redhat.com>2021-02-05 18:59:44 +0000
committerKrzysztof Tomaszewski <krzysztof.tomaszewski@labedz.org>2022-10-04 12:20:45 +0000
commit47a2387595a01e7b8afe9f6b90a5048c93123d15 (patch)
tree5c4e76d02b9e6e177c35cd72d4efee5ac46bba19
parentae6d06be8007e20ee7145aa7fce4943aad76451c (diff)
downloadneutron-47a2387595a01e7b8afe9f6b90a5048c93123d15.tar.gz
Convert OvnDbNotifyHandler rows to frozen rows
In I87489596e2ff224431f7e83f43a1725172ee0953, the intent was to make sure all event rows were converted to "frozen" rows to avoid race conditions. Since OnvDbNotifyHandler.notify() does not call super(), then it is necessary to do this conversion ourselves. Related-Bug: #1896816 Change-Id: Ic281dec74a46c95024a6df1db3b1f9ee7d7d1227 (cherry picked from commit 27255fce30f570b549b026346fb10b7d0dca9039)
-rw-r--r--neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py
index 9967c9f1b9..abf240a5f3 100644
--- a/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py
+++ b/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py
@@ -456,6 +456,7 @@ class OvnDbNotifyHandler(backports.RowEventHandler):
pass
def notify(self, event, row, updates=None, global_=False):
+ row = idlutils.frozen_row(row)
matching = self.matching_events(event, row, updates, global_)
for match in matching:
self.notifications.put((match, event, row, updates))