s3:smbd remove unused code
authorChristian Ambach <ambi@samba.org>
Fri, 20 May 2011 12:17:36 +0000 (14:17 +0200)
committerChristian Ambach <ambi@samba.org>
Fri, 20 May 2011 14:18:24 +0000 (16:18 +0200)
in the early CTDB days, the RELEASE_IP message was defined
and some code was added to react on such a message to make
smbd exit if the IP address it was using for the server socket
is removed by CTDB.
Later, it was discovered that we need to stop smbd immediately
and logic was added to ctdb_conn to call release_ip() without
going through the messaging system.

So this code is not used and can be removed

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri May 20 16:18:24 CEST 2011 on sn-devel-104

source3/librpc/idl/messaging.idl
source3/smbd/process.c

index 8618d53c9a27234d1f0e38215f2ca84915c9d236..0c0672c7a6dc9bf70ba7e0cc69da9ba5ba476836 100644 (file)
@@ -75,7 +75,6 @@ interface messaging
 
                /* cluster reconfigure events */
                MSG_SMB_BRL_VALIDATE            = 0x0311,
-               MSG_SMB_RELEASE_IP              = 0x0312,
 
                /*Close a specific file given a share entry. */
                MSG_SMB_CLOSE_FILE              = 0x0313,
index 7f04a7bcb61bc027e2c037c966a1c1f3037424e7..dc637de30a0618771348cdcf63aefe5cc5915816 100644 (file)
@@ -2375,15 +2375,6 @@ static void release_ip(const char *ip, void *priv)
        }
 }
 
-static void msg_release_ip(struct messaging_context *msg_ctx, void *private_data,
-                          uint32_t msg_type, struct server_id server_id, DATA_BLOB *data)
-{
-       struct smbd_server_connection *sconn = talloc_get_type_abort(
-               private_data, struct smbd_server_connection);
-
-       release_ip((char *)data->data, sconn->client_id.addr);
-}
-
 #ifdef CLUSTER_SUPPORT
 static int client_get_tcp_info(int sock, struct sockaddr_storage *server,
                               struct sockaddr_storage *client)
@@ -3040,8 +3031,6 @@ void smbd_process(struct smbd_server_connection *sconn)
        /* register our message handlers */
        messaging_register(sconn->msg_ctx, NULL,
                           MSG_SMB_FORCE_TDIS, msg_force_tdis);
-       messaging_register(sconn->msg_ctx, sconn,
-                          MSG_SMB_RELEASE_IP, msg_release_ip);
        messaging_register(sconn->msg_ctx, NULL,
                           MSG_SMB_CLOSE_FILE, msg_close_file);