ctdb-daemon: Remove setting of debug_extra via ctdb_set_child_info()
authorAmitay Isaacs <amitay@gmail.com>
Fri, 25 Nov 2016 03:37:17 +0000 (14:37 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 5 Dec 2016 07:09:22 +0000 (08:09 +0100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_fork.c

index 0a68dae427bb8cf552e67a02f03195898bd2241f..3dc090ccaa7b8750e47192ee16e224233dabeff3 100644 (file)
@@ -604,9 +604,6 @@ int switch_from_server_to_client(struct ctdb_context *ctdb,
 
 /* From server/ctdb_fork.c */
 
-void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt,
-                        ...) PRINTF_ATTRIBUTE(2,3);
-
 void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);
 
 pid_t ctdb_fork(struct ctdb_context *ctdb);
index 54ffd02ae0c4994ed2cd6fd20873cc69da4c3dd5..97dff0088babeb6647e479c8488b3cac52b749ce 100644 (file)
 #include "common/common.h"
 #include "common/logging.h"
 
-void ctdb_set_child_info(TALLOC_CTX *mem_ctx, const char *child_name_fmt, ...)
-{
-       if (child_name_fmt != NULL) {
-               va_list ap;
-               char *t;
-
-               va_start(ap, child_name_fmt);
-               t = talloc_vasprintf(mem_ctx, child_name_fmt, ap);
-               debug_extra = talloc_asprintf(mem_ctx, "%s:", t);
-               talloc_free(t);
-               va_end(ap);
-       }
-}
-
 void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid)
 {
        char *process;
@@ -81,8 +67,6 @@ pid_t ctdb_fork(struct ctdb_context *ctdb)
                return -1;
        }
        if (pid == 0) {
-               ctdb_set_child_info(ctdb, NULL);
-
                /* Close the Unix Domain socket and the TCP socket.
                 * This ensures that none of the child processes will
                 * look like the main daemon when it is not running.