[ovs-git] [openvswitch/ovs] c8ebe4: python: Fix Idl.run change_seqno update.
bpetermannS11
noreply at github.com
Wed Jul 7 20:50:38 UTC 2021
Branch: refs/heads/branch-2.13
Home: https://github.com/openvswitch/ovs
Commit: c8ebe4434cc88fcac8a4ec93bfbaad550a8b7a1b
https://github.com/openvswitch/ovs/commit/c8ebe4434cc88fcac8a4ec93bfbaad550a8b7a1b
Author: Bodo Petermann <b.petermann at syseleven.de>
Date: 2021-07-07 (Wed, 07 Jul 2021)
Changed paths:
M python/ovs/db/idl.py
Log Message:
-----------
python: Fix Idl.run change_seqno update.
Fix an issue where Idl.run() returned False even if there was a change.
If Idl.run() reads multiple messages from the database server, some
may constitute changes and some may not. Changed the way change_seqno
is reset: if a message is not a change, reset change_seqno only to the
value before reading this message, not to the value before reading the
first message.
This will fix the return value in a scenario where some message was a
change and the last one wasn't. The new change_seqno will now be the
value after handling the message with the last change.
Fixes: c39751e44539 ("python: Monitor Database table to manage lifecycle of IDL client.")
Signed-off-by: Bodo Petermann <b.petermann at syseleven.de>
Acked-by: Alin Gabriel Serdean <aserdean at ovn.org>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
More information about the git
mailing list