Use cluster-aware procid_is_me instead of comparing pid's
authorVolker Lendecke <vl@samba.org>
Fri, 3 Apr 2009 08:43:13 +0000 (10:43 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 3 Apr 2009 10:19:20 +0000 (12:19 +0200)
source3/smbd/oplock.c

index d0d228e78cecb79ad59535afef9ab6517766d2df..6add9f5fc1b787ae05e33730d5c54c5cf5b9cf45 100644 (file)
@@ -419,7 +419,7 @@ void process_oplock_async_level2_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();
        }
 
@@ -520,7 +520,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();
        }