Use cluster-aware procid_is_me instead of comparing pid's
authorVolker Lendecke <vl@samba.org>
Fri, 3 Apr 2009 21:24:02 +0000 (14:24 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2009 21:24:02 +0000 (14:24 -0700)
source/smbd/oplock.c

index 63120f5383831c9925e80297ff5d06e726f0adcc..a07d05d080cb3f82f4dcae8e48d6556847a8f012 100644 (file)
@@ -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();
        }