Python binaries to write comment in db show-log while updating database
authorArun Sharma <arun.sharma@calsoftinc.com>
Mon, 9 Apr 2012 20:29:32 +0000 (13:29 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 10 Apr 2012 17:42:03 +0000 (10:42 -0700)
This is an improvement in python script ovs-xapi-sync to call add_comment()
method while updating database. This will help developer to debug binaries
and database from ovsdb-tool show-log command output and understand which
python binary is updating db.

Feature #10543
Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync

index cc14d6f28bf9aa6e0c133707fdbe6caf4b82e965..77c07bcd6e356266e3159a2fdede125c7d81f9ff 100755 (executable)
@@ -361,6 +361,7 @@ def main():
         iface_ids = new_iface_ids
         vm_ids = new_vm_ids
 
+        txn.add_comment("ovs-xapi-sync: Updating records from XAPI")
         txn.commit_block()
 
     unixctl_server.close()