From d29491eeb4a6e2128430eeac9a08327d8e7d8ed6 Mon Sep 17 00:00:00 2001 From: Wentao Jia Date: Sat, 2 Apr 2022 10:51:11 +0800 Subject: 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 Acked-by: Dumitru Ceara Signed-off-by: Ilya Maximets --- python/ovs/db/idl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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 -- cgit v1.2.1