From 53178986d7fc86bcfc2f297b547a97ee71a21bb7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 28 Dec 2017 13:21:11 -0800 Subject: ovsdb: Add support for online schema conversion. With this change, "ovsdb-client convert" can be used to convert a database from one schema to another without taking the database offline. This can be useful to minimize downtime for a database during a software upgrade. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- ovsdb/transaction.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ovsdb/transaction.h') diff --git a/ovsdb/transaction.h b/ovsdb/transaction.h index 1ecd15a56..f9b886411 100644 --- a/ovsdb/transaction.h +++ b/ovsdb/transaction.h @@ -26,6 +26,11 @@ struct uuid; struct ovsdb_txn *ovsdb_txn_create(struct ovsdb *); void ovsdb_txn_abort(struct ovsdb_txn *); + +struct ovsdb_error *ovsdb_txn_start_commit(struct ovsdb_txn *) + OVS_WARN_UNUSED_RESULT; +struct ovsdb_error *ovsdb_txn_finish_commit(struct ovsdb_txn *, bool durable) + OVS_WARN_UNUSED_RESULT; struct ovsdb_error *ovsdb_txn_commit(struct ovsdb_txn *, bool durable) OVS_WARN_UNUSED_RESULT; -- cgit v1.2.1