mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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>
This commit is contained in:
parent
9988e62552
commit
8763c8c196
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user