]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb-idl: Fix expected condition seqno when changes are pending.
authorDumitru Ceara <dceara@redhat.com>
Fri, 4 Dec 2020 14:54:41 +0000 (15:54 +0100)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 4 Dec 2020 19:00:36 +0000 (20:00 +0100)
commit97dbef6de9d8ac72a20d4ccbb3bcdba3e308f6b9
tree7e15833a3272163e7b3939a8e77cb865c7df092c
parent35454eba79a42a7374bb2572f1348abe4cc92318
ovsdb-idl: Fix expected condition seqno when changes are pending.

Commit 17f22fe46142 tried to address this but only covered some of the
cases.

The correct way to report the expected seqno is to take into account if
there already is a condition change that was requested to the server but
not acked yet.  In that case, the new condition change request will be
sent only after the already requested one is acked.  That is, expected
condition seqno when conditions are up to date is db->cond_seqno + 2 in
this case.

Fixes: 17f22fe46142 ("ovsdb-idl: Return correct seqno from ovsdb_idl_db_set_condition().")
Suggested-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/ovsdb-idl.c