From e51879e99b3ed11c6b7017a63bff1c5da9f21fda Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Fri, 29 Jul 2016 14:39:29 -0700 Subject: 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 Acked-by: Ben Pfaff --- ovsdb/ovsdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ovsdb/ovsdb.h') 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); -- cgit v1.2.1