summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorWentao Jia <wentao.jia@easystack.cn>2022-04-02 10:51:11 +0800
committerIlya Maximets <i.maximets@ovn.org>2022-04-04 22:52:12 +0200
commitd29491eeb4a6e2128430eeac9a08327d8e7d8ed6 (patch)
tree2a8a720c2ec0f8bb1f25d269ced0cae63e07d3d1 /python
parent9a67d883dc16ecd2f5ccdd7ab90f198833494cff (diff)
downloadopenvswitch-d29491eeb4a6e2128430eeac9a08327d8e7d8ed6.tar.gz
python: idl: Set cond_changed to true if condition change requested.
cond_changed set to true if _req_cond (requested condition change) is not none. This can avoid falling into an endless poll loop, because cond_changed is true will trigger immediate_wake(). Fixes: 46d44cf3be0d ("python: idl: Add monitor_cond_since support.") Signed-off-by: Wentao Jia <wentao.jia@easystack.cn> Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'python')
-rw-r--r--python/ovs/db/idl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index 166fa38e6..83a634dd0 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -366,7 +366,7 @@ class Idl(object):
else:
if table.condition.reset():
self.last_id = str(uuid.UUID(int=0))
- self.cond_changed = True
+ self.cond_changed = True
def restart_fsm(self):
# Resync data DB table conditions to avoid missing updated due to