diff options
author | Volker Lendecke <vl@samba.org> | 2014-05-07 09:51:59 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-05-08 09:10:12 +0200 |
commit | 8763c8c19625a974b040987e6fd73aea0434730a (patch) | |
tree | 8f69585df42e68dc67ffd8cad0f4aaba19dff15d /source3/lib/messages.c | |
parent | 9988e625524a2f79a884d02ae02924bed9c2576d (diff) | |
download | samba-8763c8c19625a974b040987e6fd73aea0434730a.tar.gz samba-8763c8c19625a974b040987e6fd73aea0434730a.tar.xz samba-8763c8c19625a974b040987e6fd73aea0434730a.zip |
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } /* |