From: Martin Schwenke Date: Sun, 1 Mar 2020 05:40:41 +0000 (+1100) Subject: ctdb-daemon: more logical whitespace, debug modernisation X-Git-Tag: samba-4.10.14~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4e66b3df89917caa136c6aad4c301e4de506a7;p=thirdparty%2Fsamba.git ctdb-daemon: more logical whitespace, debug modernisation BUG: https://bugzilla.samba.org/show_bug.cgi?id=14295 Signed-off-by: Martin Schwenke Reviewed-by: Ralph Boehme (cherry picked from commit 15762a34559599cf908e30651a2d4c11560068ed) --- diff --git a/ctdb/server/ctdb_server.c b/ctdb/server/ctdb_server.c index 02a5883cdbd..3fce791b27e 100644 --- a/ctdb/server/ctdb_server.c +++ b/ctdb/server/ctdb_server.c @@ -302,11 +302,11 @@ done: void ctdb_node_dead(struct ctdb_node *node) { if (node->ctdb->methods == NULL) { - DEBUG(DEBUG_ERR,(__location__ " Can not restart transport while shutting down daemon.\n")); + DBG_ERR("Can not restart transport while shutting down\n"); return; } - node->ctdb->methods->restart(node); + if (node->flags & NODE_FLAGS_DISCONNECTED) { DEBUG(DEBUG_INFO,("%s: node %s is already marked disconnected: %u connected\n", node->ctdb->name, node->name,