From e0ebb46cff5d45a0bda6dd525e25ae71dec7ed57 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 20 May 2007 19:43:49 +0000 Subject: r23023: Get rid of the only caller of message_send_pid_with_timeout(). This replaces the timeouts on the individual message send calls with an overall timeout on all the calls. The timeout in message_send_pid_with_timeout() did not make much sense IMO anyway, because the tdb_fetch() for the messages_pending_for_pid was blocking in a readlock anyway, we "just" did the timeout for the write lock. This new code goes through the full wait for the write lock once and then breaks out of sending the notifies instead of running into the timeout per target. Jerry, please check this! Thanks, Volker (This used to be commit 697099f06e1aa432187f802b9c2632607e3de46e) --- source3/lib/messages.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 30056de716..479a6952a6 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -872,14 +872,4 @@ NTSTATUS messaging_send_buf(struct messaging_context *msg_ctx, return messaging_send(msg_ctx, server, msg_type, &blob); } -NTSTATUS messaging_send_buf_with_timeout(struct messaging_context *msg_ctx, - struct server_id server, - uint32_t msg_type, - const uint8 *buf, size_t len, - int timeout) -{ - return message_send_pid_internal(server, msg_type, buf, len, - True, timeout); -} - /** @} **/ -- cgit