1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Add debug output to indicate why a node starts up in DISABLED state

(This used to be ctdb commit 8df75775966ead36e1073896fedeff674a6e0587)
This commit is contained in:
Ronnie Sahlberg 2008-02-22 09:52:57 +11:00
parent 39539f6044
commit f3b474cffb
2 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ static int ctdb_add_node(struct ctdb_context *ctdb, char *nstr)
/* do we start out in DISABLED mode? */
if (ctdb->start_as_disabled != 0) {
DEBUG(DEBUG_INFO, ("This node is configured to start in DISABLED state\n"));
node->flags |= NODE_FLAGS_DISABLED;
}
}

View File

@ -315,6 +315,7 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb)
ctdb->pnn));
/* do we start out in DISABLED mode? */
if (ctdb->start_as_disabled != 0) {
DEBUG(DEBUG_INFO, ("This node is configured to start in DISABLED state\n"));
ctdb->nodes[i]->flags |= NODE_FLAGS_DISABLED;
}