[ovs-git] [openvswitch/ovs] 86d6a9: python: Fix Idl.run change_seqno update.
bpetermannS11
noreply at github.com
Wed Jul 7 20:50:25 UTC 2021
Branch: refs/heads/branch-2.15
Home: https://github.com/openvswitch/ovs
Commit: 86d6a9ee14456a76ef4a5d4bf633eca6bb7d0cd2
https://github.com/openvswitch/ovs/commit/86d6a9ee14456a76ef4a5d4bf633eca6bb7d0cd2
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