From: Andrew Tridgell Date: Fri, 8 Aug 2008 10:31:03 +0000 (+1000) Subject: register the ctdbd reconfigure message X-Git-Tag: samba-3.3.0pre1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d3217bb28765e107c230fb90b578dcc6f5d4375;p=thirdparty%2Fsamba.git register the ctdbd reconfigure message --- diff --git a/source/lib/ctdbd_conn.c b/source/lib/ctdbd_conn.c index 45dd019efcd..5fc4b7ce1fd 100644 --- a/source/lib/ctdbd_conn.c +++ b/source/lib/ctdbd_conn.c @@ -353,6 +353,14 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid, goto next_pkt; } + if (msg->srvid == CTDB_SRVID_RECONFIGURE) { + DEBUG(0,("Got cluster reconfigure message in ctdb_read_req\n")); + messaging_send(conn->msg_ctx, procid_self(), + MSG_SMB_BRL_VALIDATE, &data_blob_null); + TALLOC_FREE(hdr); + goto next_pkt; + } + if (!(msg_state = TALLOC_P(NULL, struct deferred_msg_state))) { DEBUG(0, ("talloc failed\n")); TALLOC_FREE(hdr); diff --git a/source/smbd/server.c b/source/smbd/server.c index 05f11f6753c..d083fec494d 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -573,6 +573,10 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ MSG_SMB_STAT_CACHE_DELETE, smb_stat_cache_delete); brl_register_msgs(smbd_messaging_context()); +#ifdef CLUSTER_SUPPORT + ctdbd_register_reconfigure(messaging_ctdbd_connection()); +#endif + #ifdef DEVELOPER messaging_register(smbd_messaging_context(), NULL, MSG_SMB_INJECT_FAULT, msg_inject_fault);