]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: more logical whitespace, debug modernisation
authorMartin Schwenke <martin@meltin.net>
Sun, 1 Mar 2020 05:40:41 +0000 (16:40 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 24 Mar 2020 07:26:17 +0000 (07:26 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14295

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 15762a34559599cf908e30651a2d4c11560068ed)

ctdb/server/ctdb_server.c

index 02a5883cdbd7477b4e07b7d6f859269e85986a4b..3fce791b27e9093574b31c5fbb425e5232697bda 100644 (file)
@@ -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,