git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4955e16
)
Use cluster-aware procid_is_me instead of comparing pid's
author
Volker Lendecke
<vl@samba.org>
Fri, 3 Apr 2009 21:24:02 +0000
(14:24 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 3 Apr 2009 21:24:02 +0000
(14:24 -0700)
source/smbd/oplock.c
patch
|
blob
|
history
diff --git
a/source/smbd/oplock.c
b/source/smbd/oplock.c
index 63120f5383831c9925e80297ff5d06e726f0adcc..a07d05d080cb3f82f4dcae8e48d6556847a8f012 100644
(file)
--- 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();
}