summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-01-19 04:09:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:47 -0500
commit864e228f504d0c73b78681fb69884783c7c689f2 (patch)
treed8f2725f9b7d14465faf89e61c1c5ada78db3cc5
parent72316674bf8a53fb704f14690d900a6c5799deb7 (diff)
downloadsamba-864e228f504d0c73b78681fb69884783c7c689f2.tar.gz
samba-864e228f504d0c73b78681fb69884783c7c689f2.tar.bz2
samba-864e228f504d0c73b78681fb69884783c7c689f2.zip
r20895: enable ctdb backend at startup (if configured)
(This used to be commit e73063a0c6af927e520b3bdd7574dc7183847813)
-rw-r--r--source4/smbd/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 81ec90766e..7f353ad6a3 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -39,6 +39,7 @@
#include "smbd/service.h"
#include "param/secrets.h"
#include "smbd/pidfile.h"
+#include "cluster/ctdb/ctdb_cluster.h"
/*
recursively delete a directory tree
@@ -284,6 +285,9 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
should hang off that */
event_ctx = event_context_init(NULL);
+ /* initialise clustering if needed */
+ cluster_ctdb_init(event_ctx);
+
if (interactive) {
/* catch EOF on stdin */
#ifdef SIGTTIN