summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2020-05-15 09:36:37 -0700
committerBen Pfaff <blp@ovn.org>2020-11-02 15:15:19 -0800
commit3630ab86f4912192b91fe8db526eecc5872f6864 (patch)
treefac857186d6a0f75fca24f8491b7e0b37520c31e /lib
parent93023e80bd13ec1f09831eba484cf4621582d1a5 (diff)
downloadopenvswitch-3630ab86f4912192b91fe8db526eecc5872f6864.tar.gz
ovsdb-idl: Add comment with program name to ovsdb_idl_loop transactions.
This can make it easier to see what daemon is committing transactions. Sometimes, in OVN especially, it can be hard to guess. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Dumitru Ceara <dceara@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ovsdb-idl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index d8f221ca6..fdb9d85f5 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -5521,6 +5521,9 @@ ovsdb_idl_loop_run(struct ovsdb_idl_loop *loop)
|| ovsdb_idl_get_seqno(loop->idl) == loop->skip_seqno
? NULL
: ovsdb_idl_txn_create(loop->idl));
+ if (loop->open_txn) {
+ ovsdb_idl_txn_add_comment(loop->open_txn, "%s", program_name);
+ }
return loop->open_txn;
}