diff options
author | Ben Pfaff <blp@nicira.com> | 2009-12-16 13:30:53 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-12-16 13:30:53 -0800 |
commit | d171b5846f4988e66c45a6ed5998bbaef82571f9 (patch) | |
tree | b806bc671fa52a1bb36eb3029dac8693f47fb543 /ovsdb/transaction.h | |
parent | 5f98eed4eb5b75ab02422de1b5dbd5276ad5593d (diff) | |
download | openvswitch-d171b5846f4988e66c45a6ed5998bbaef82571f9.tar.gz |
ovsdb: Add "comment" feature to transactions and make ovs-vsctl use them.
The idea here is that transaction comments get copied to the ovsdb-server's
transaction log, which can then make it clear later why a particular change
was made to the database, to ease debugging.
Diffstat (limited to 'ovsdb/transaction.h')
-rw-r--r-- | ovsdb/transaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ovsdb/transaction.h b/ovsdb/transaction.h index 048bf74fa..1c54ec3af 100644 --- a/ovsdb/transaction.h +++ b/ovsdb/transaction.h @@ -39,4 +39,7 @@ typedef bool ovsdb_txn_row_cb_func(const struct ovsdb_row *old, void ovsdb_txn_for_each_change(const struct ovsdb_txn *, ovsdb_txn_row_cb_func *, void *aux); +void ovsdb_txn_add_comment(struct ovsdb_txn *, const char *); +const char *ovsdb_txn_get_comment(const struct ovsdb_txn *); + #endif /* ovsdb/transaction.h */ |