From: Volker Lendecke Date: Fri, 3 Apr 2009 21:24:02 +0000 (-0700) Subject: Use cluster-aware procid_is_me instead of comparing pid's X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2cd00813c5221a03508249e5bb49e648befc734;p=thirdparty%2Fsamba.git Use cluster-aware procid_is_me instead of comparing pid's --- diff --git a/source/smbd/oplock.c b/source/smbd/oplock.c index 63120f53838..a07d05d080c 100644 --- a/source/smbd/oplock.c +++ b/source/smbd/oplock.c @@ -456,7 +456,7 @@ static void process_oplock_async_level2_break_message(struct messaging_context * } /* Need to wait before sending a break message if we sent ourselves this message. */ - if (procid_to_pid(&src) == sys_getpid()) { + if (procid_is_me(&src)) { wait_before_sending_break(); } @@ -564,7 +564,7 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx, } /* Need to wait before sending a break message if we sent ourselves this message. */ - if (procid_to_pid(&src) == sys_getpid()) { + if (procid_is_me(&src)) { wait_before_sending_break(); }