From 42e477b14e0c690be28115825ac61f890e84d1c4 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 21 Feb 2012 07:03:44 +1100 Subject: READONLY: only send a control to schedule fast-vacuuming from child context iff we have a connection open to the main daemon there are some child processes where we do not create a connection to the main daemon (switch_from_server_to_client()) because it is expensive to set up and we normally might not need to talk to the daemon at all via a domainsocket. but we might want to still call to ctdb_ltdb_store() from such chil processes. (This used to be ctdb commit 9e372a08c40087e6b5335aa298e94d88273566a5) --- ctdb/client/ctdb_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ctdb/client/ctdb_client.c') diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 0d0f2fea44..1b4143985f 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -4123,7 +4123,9 @@ int switch_from_server_to_client(struct ctdb_context *ctdb, const char *fmt, ... return -1; } - return 0; + ctdb->can_send_controls = true; + + return 0; } /* -- cgit