summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2015-04-09 00:10:12 -0700
committerJustin Pettit <jpettit@nicira.com>2015-04-09 12:32:47 -0700
commit5da8207186b6ecd05c8cd8e6673db53c439ecd8c (patch)
tree26ea665043bb2622aaca8025cf62ef56b32c32e5
parentafc9da0b05819db4d87cb2415e6a26e7b6ee3409 (diff)
downloadopenvswitch-5da8207186b6ecd05c8cd8e6673db53c439ecd8c.tar.gz
ovn-nbd: Add basic OVSDB transaction comments.
These comments aren't particularly detailed, but it's helpful to at least see what is modifying the database contents. Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
-rw-r--r--ovn/ovn-nbd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ovn/ovn-nbd.c b/ovn/ovn-nbd.c
index 28bc000fa..54cd3c875 100644
--- a/ovn/ovn-nbd.c
+++ b/ovn/ovn-nbd.c
@@ -415,6 +415,8 @@ main(int argc, char *argv[])
* updating the OVN DB.
*/
ctx.ovnsb_txn = ovsdb_idl_txn_create(ctx.ovnsb_idl);
+ ovsdb_idl_txn_add_comment(ctx.ovnsb_txn,
+ "ovn-nbd: northbound db changed");
ovnnb_db_changed(&ctx);
ovnnb_changes_pending = false;
}
@@ -425,6 +427,8 @@ main(int argc, char *argv[])
* updating the northbound DB.
*/
ctx.ovnnb_txn = ovsdb_idl_txn_create(ctx.ovnnb_idl);
+ ovsdb_idl_txn_add_comment(ctx.ovnnb_txn,
+ "ovn-nbd: southbound db changed");
ovnsb_db_changed(&ctx);
ovn_changes_pending = false;
}