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: 46d44cf ("python: idl: Add monitor_cond_since support.")
Signed-off-by: Wentao Jia <[email protected]>
Acked-by: Dumitru Ceara <[email protected]>
---
python/ovs/db/idl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py
index 4ecdcaa19..2090d6456 100644
--- a/python/ovs/db/idl.py
+++ b/python/ovs/db/idl.py
@@ -363,7 +363,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
--
2.32.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev