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:44:25 +0000 (11:44 -0800)
commitfa4aec994b297d6bd02ad881a1ded28e7b7c5000
treebdffbe114e43d396127b7dd42a87c71927168dcd
parent522f8f6ff0af5eb56197adb309cf56b4800756f8
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