summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@ovn.org>2016-07-29 14:39:29 -0700
committerAndy Zhou <azhou@ovn.org>2016-08-14 23:32:47 -0700
commite51879e99b3ed11c6b7017a63bff1c5da9f21fda (patch)
treee8e32e013d1e0c3d54898ce08b82e2cbb357a2e2 /ovsdb/ovsdb.h
parent8fd2bca0270f4055bccca103c596949ab7591b4d (diff)
downloadopenvswitch-e51879e99b3ed11c6b7017a63bff1c5da9f21fda.tar.gz
ovsdb: Make OVSDB backup sever read only
When ovsdb-sever is running in the backup state, it would be nice to make sure there is no un-intended changes to the backup database. This patch makes the ovsdb server only accepts 'read' transactions as a backup server. When the server role is changed into an active server, all existing client connections will be reset. After reconnect, all clinet transactions will then be accepted. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/ovsdb.h')
-rw-r--r--ovsdb/ovsdb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/ovsdb.h b/ovsdb/ovsdb.h
index 418805c15..fc45c80a3 100644
--- a/ovsdb/ovsdb.h
+++ b/ovsdb/ovsdb.h
@@ -72,7 +72,7 @@ void ovsdb_get_memory_usage(const struct ovsdb *, struct simap *usage);
struct ovsdb_table *ovsdb_get_table(const struct ovsdb *, const char *);
struct json *ovsdb_execute(struct ovsdb *, const struct ovsdb_session *,
- const struct json *params,
+ const struct json *params, bool read_only,
long long int elapsed_msec,
long long int *timeout_msec);