ovs-xapi-sync: Rerun processing when a db update arrives during a commit.
authorBen Pfaff <blp@nicira.com>
Thu, 8 Mar 2012 18:49:47 +0000 (10:49 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 8 Mar 2012 19:45:59 +0000 (11:45 -0800)
commit1edad945304bde37e6f7aeb84b398d2fa1f51913
tree284a443683e1156e4df056a4bab8d0db23dc782f
parent1365595e3df6fcf4aa1bdee781227575574f19d8
ovs-xapi-sync: Rerun processing when a db update arrives during a commit.

The logic in ovs-xapi-sync didn't handle the case where ovsdb-server sends
a database update before it replies to a transaction that ovs-xapi-sync
sent, like this:

ovs-xapi-sync              ovsdb-server
-------------              ------------

                      .
                      .
                      .
transaction request  --->
                     <---  database contents update
                     <---  transaction reply
                      .
                      .
                      .

The update was not lost but ovs-xapi-sync would not process it until the
database changed again.

Bug #10082.
Reported-by: Krishna Miriyala <krishna@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync