Skip to content

Commit

Permalink
python: idl: Set cond_changed to true if condition change requested.
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
Wentao Jia authored and igsilya committed Apr 4, 2022
1 parent 9a67d88 commit d29491e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ovs/db/idl.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def sync_conditions(self):
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
Expand Down

0 comments on commit d29491e

Please sign in to comment.