s3: Remove procid_self() from ctdb_read_req() and ctdb_handle_message()
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 18:50:11 +0000 (20:50 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Jul 2010 09:06:32 +0000 (11:06 +0200)
source3/lib/ctdbd_conn.c

index 9a30d1fdc236c536bf0fb90498456fb1a446800c..8dba3b2d770695c81e9bbf5df2a64f9f85db2302 100644 (file)
@@ -368,9 +368,11 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid,
                                  (msg->srvid == CTDB_SRVID_RECONFIGURE)
                                  ? "cluster reconfigure" : "SAMBA_NOTIFY"));
 
-                       messaging_send(conn->msg_ctx, procid_self(),
+                       messaging_send(conn->msg_ctx,
+                                      messaging_server_id(conn->msg_ctx),
                                       MSG_SMB_BRL_VALIDATE, &data_blob_null);
-                       messaging_send(conn->msg_ctx, procid_self(),
+                       messaging_send(conn->msg_ctx,
+                                      messaging_server_id(conn->msg_ctx),
                                       MSG_DBWRAP_G_LOCK_RETRY,
                                       &data_blob_null);
                        TALLOC_FREE(hdr);
@@ -564,10 +566,12 @@ static NTSTATUS ctdb_handle_message(uint8_t *buf, size_t length,
                 * family has passed away (SAMBA_NOTIFY), we need to
                 * clean the brl database
                 */
-               messaging_send(conn->msg_ctx, procid_self(),
+               messaging_send(conn->msg_ctx,
+                              messaging_server_id(conn->msg_ctx),
                               MSG_SMB_BRL_VALIDATE, &data_blob_null);
 
-               messaging_send(conn->msg_ctx, procid_self(),
+               messaging_send(conn->msg_ctx,
+                              messaging_server_id(conn->msg_ctx),
                               MSG_DBWRAP_G_LOCK_RETRY,
                               &data_blob_null);