diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-03 10:43:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-03 12:19:20 +0200 |
commit | 7ee4f168d8b18eaeed9cbdbf2db17090b8d35961 (patch) | |
tree | 89a0449a1136ae37fb5733f045ce944a1166b3d5 /source3 | |
parent | b63cd72ae44ae9dcc56b8be95b52d6e47ae1c20f (diff) | |
download | samba-7ee4f168d8b18eaeed9cbdbf2db17090b8d35961.tar.gz samba-7ee4f168d8b18eaeed9cbdbf2db17090b8d35961.tar.bz2 samba-7ee4f168d8b18eaeed9cbdbf2db17090b8d35961.zip |
Use cluster-aware procid_is_me instead of comparing pid's
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/oplock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index d0d228e78c..6add9f5fc1 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -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(); } |