summaryrefslogtreecommitdiffstats
path: root/ctdb/client
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2012-02-21 07:03:44 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2012-02-21 07:03:44 +1100
commit42e477b14e0c690be28115825ac61f890e84d1c4 (patch)
tree229b77ccd3c4a9ec2be974844377554e79898933 /ctdb/client
parentcdc232f2dd798100a608c5a4845391d3c07899ad (diff)
downloadsamba-42e477b14e0c690be28115825ac61f890e84d1c4.tar.gz
samba-42e477b14e0c690be28115825ac61f890e84d1c4.tar.xz
samba-42e477b14e0c690be28115825ac61f890e84d1c4.zip
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)
Diffstat (limited to 'ctdb/client')
-rw-r--r--ctdb/client/ctdb_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c
index 0d0f2fea448..1b4143985fe 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;
}
/*