From: Martin Schwenke Date: Wed, 14 Mar 2018 04:34:57 +0000 (+1100) Subject: ctdb-daemon: Drop ctdbd --nlist option X-Git-Tag: talloc-2.1.12~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db7e4aa3d8a9eb73774bde28cf37b017555f5019;p=thirdparty%2Fsamba.git ctdb-daemon: Drop ctdbd --nlist option Tests now deviate from the compile-time default by setting CTDB_BASE. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/doc/ctdbd.1.xml b/ctdb/doc/ctdbd.1.xml index 97a86a15543..4f6d482da90 100644 --- a/ctdb/doc/ctdbd.1.xml +++ b/ctdb/doc/ctdbd.1.xml @@ -114,8 +114,10 @@ By default ctdbd will select the first address from the - nodes list that in can bind to. See also - --nlist. + nodes list that in can bind to. See also the + Private address section in + ctdb + 7. This option is only required when automatic address @@ -227,22 +229,6 @@ - - --nlist=FILENAME - - - FILENAME containing a list of the private IP addresses, one - per line, for each node in the cluster. This file - must be the same on each node in the - cluster. - - - Default is CTDB_BASE/nodes, so usually - /usr/local/etc/ctdb/nodes. - - - - --no-lmaster diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c index 91e3132e38c..68e7e7d0455 100644 --- a/ctdb/server/ctdbd.c +++ b/ctdb/server/ctdbd.c @@ -41,7 +41,6 @@ static struct { const char *debuglevel; - const char *nlist; const char *transport; const char *myaddress; const char *notification_script; @@ -62,7 +61,6 @@ static struct { int torture; } options = { .debuglevel = "NOTICE", - .nlist = NULL, .transport = "tcp", .logging = "file:" LOGDIR "/log.ctdb", .db_dir = CTDB_VARDIR, @@ -117,7 +115,6 @@ int main(int argc, const char *argv[]) { "debug", 'd', POPT_ARG_STRING, &options.debuglevel, 0, "debug level", NULL }, { "interactive", 'i', POPT_ARG_NONE, &interactive, 0, "don't fork", NULL }, { "logging", 0, POPT_ARG_STRING, &options.logging, 0, "logging method to be used", NULL }, - { "nlist", 0, POPT_ARG_STRING, &options.nlist, 0, "node list file", "filename" }, { "notification-script", 0, POPT_ARG_STRING, &options.notification_script, 0, "notification script", "filename" }, { "listen", 0, POPT_ARG_STRING, &options.myaddress, 0, "address to listen on", "address" }, { "transport", 0, POPT_ARG_STRING, &options.transport, 0, "protocol transport", NULL }, @@ -285,15 +282,11 @@ int main(int argc, const char *argv[]) setenv("CTDB_BASE", CTDB_ETCDIR, 0); /* tell ctdb what nodes are available */ - if (options.nlist != NULL) { - ctdb->nodes_file = options.nlist; - } else { - ctdb->nodes_file = - talloc_asprintf(ctdb, "%s/nodes", getenv("CTDB_BASE")); - if (ctdb->nodes_file == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Out of memory\n")); - exit(1); - } + ctdb->nodes_file = + talloc_asprintf(ctdb, "%s/nodes", getenv("CTDB_BASE")); + if (ctdb->nodes_file == NULL) { + DEBUG(DEBUG_ERR,(__location__ " Out of memory\n")); + exit(1); } ctdb_load_nodes_file(ctdb);