1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-daemon: Increase priority of logs when ctdb starts up disabled/stopped

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2017-07-04 15:49:19 +10:00 committed by Karolin Seeger
parent c6f2624287
commit a004c93410

View File

@ -1060,12 +1060,14 @@ static void initialise_node_flags (struct ctdb_context *ctdb)
/* do we start out in DISABLED mode? */
if (ctdb->start_as_disabled != 0) {
DEBUG(DEBUG_NOTICE, ("This node is configured to start in DISABLED state\n"));
DEBUG(DEBUG_ERR,
("This node is configured to start in DISABLED state\n"));
ctdb->nodes[ctdb->pnn]->flags |= NODE_FLAGS_DISABLED;
}
/* do we start out in STOPPED mode? */
if (ctdb->start_as_stopped != 0) {
DEBUG(DEBUG_NOTICE, ("This node is configured to start in STOPPED state\n"));
DEBUG(DEBUG_ERR,
("This node is configured to start in STOPPED state\n"));
ctdb->nodes[ctdb->pnn]->flags |= NODE_FLAGS_STOPPED;
}
}