diff options
author | Terry Wilson <twilson@redhat.com> | 2021-02-05 18:59:44 +0000 |
---|---|---|
committer | Krzysztof Tomaszewski <krzysztof.tomaszewski@labedz.org> | 2022-10-04 12:19:31 +0000 |
commit | 6f450f764cb30daca8a153b4e012772b53790c49 (patch) | |
tree | 8e415b503f2fb4937c3744daf97233142a2eb702 | |
parent | 1dce786dd01eef07138a00b1ea5c8db4a7b5f4df (diff) | |
download | neutron-6f450f764cb30daca8a153b4e012772b53790c49.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.py | 1 |
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 0276804b0e..696d7f3efa 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)) |