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:42:25 +0000 (11:42 -0800)
commita8a4d9565ba652b2f610ffad4e78d1f9068248ad
treef3f14b595ef409ffcbe8740c43656d6869ce2f73
parent6a6455e5cea4b87df8073026ec961f11efe2a541
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