diff options
author | Han Zhou <hzhou8@ebay.com> | 2019-02-28 09:15:17 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-02-28 10:26:15 -0800 |
commit | 695e815027945cbefe3619fc3fc0c93942a1beb8 (patch) | |
tree | 0a772ea4246a0a55830c76cb82741d2f05ffb9f6 /ovsdb/transaction.h | |
parent | 222bed54cd97da30dc2d6c7da36a4f1c3e98adbf (diff) | |
download | openvswitch-695e815027945cbefe3619fc3fc0c93942a1beb8.tar.gz |
ovsdb-server: Transaction history tracking.
Maintaining last N (n = 100) transactions in memory, which will be
used for future patches for generating monitor data from any point
in this N transactions.
Signed-off-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/transaction.h')
-rw-r--r-- | ovsdb/transaction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ovsdb/transaction.h b/ovsdb/transaction.h index 32384fcd3..5e62ef06f 100644 --- a/ovsdb/transaction.h +++ b/ovsdb/transaction.h @@ -25,6 +25,7 @@ struct ovsdb_table; struct uuid; struct ovsdb_txn *ovsdb_txn_create(struct ovsdb *); +void ovsdb_txn_set_txnid(const struct uuid *, struct ovsdb_txn *); void ovsdb_txn_abort(struct ovsdb_txn *); struct ovsdb_error *ovsdb_txn_replay_commit(struct ovsdb_txn *) @@ -59,5 +60,8 @@ void ovsdb_txn_for_each_change(const struct ovsdb_txn *, void ovsdb_txn_add_comment(struct ovsdb_txn *, const char *); const char *ovsdb_txn_get_comment(const struct ovsdb_txn *); +void ovsdb_txn_history_run(struct ovsdb *); +void ovsdb_txn_history_init(struct ovsdb *); +void ovsdb_txn_history_destroy(struct ovsdb *); #endif /* ovsdb/transaction.h */ |