From 8763c8c19625a974b040987e6fd73aea0434730a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 May 2014 09:51:59 +0200 Subject: [PATCH] messaging3: Relax the self-send check a bit In the future we will have multiple task id's per process. They should all be able to benefit from the self-send local optimization. Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/lib/messages.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/lib/messages.c b/source3/lib/messages.c index e722b2a0128..6778080ac4c 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -344,7 +344,8 @@ void messaging_deregister(struct messaging_context *ctx, uint32_t msg_type, static bool messaging_is_self_send(const struct messaging_context *msg_ctx, const struct server_id *dst) { - return server_id_equal(&msg_ctx->id, dst); + return ((msg_ctx->id.vnn == dst->vnn) && + (msg_ctx->id.pid == dst->pid)); } /*