python: idl: Set cond_changed to false if last id is zero.
After reconnection, cond_changed will be set to true, poll will be
called and never block causing cpu high load forever.
Fixes: ("python: idl: Add monitor_cond_since support.")
Acked-by: Dumitru Ceara
@@ -356,6 +356,9 @@ class Idl(object):
flushing the local cached DB contents.
"""
ack_all = self.last_id == str(uuid.UUID(int=0))
+ if ack_all:
+ self.cond_changed = False
+
for table in self.tables.values():
if ack_all:
table.condition.request()
