Skip to content

Commit

Permalink
ovsdb-idl: Add comment with program name to ovsdb_idl_loop transactions.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
blp committed Nov 2, 2020
1 parent 93023e8 commit 3630ab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ovsdb-idl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3630ab8

Please sign in to comment.