git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63cd72
)
Use cluster-aware procid_is_me instead of comparing pid's
author
Volker Lendecke
<vl@samba.org>
Fri, 3 Apr 2009 08:43:13 +0000
(10:43 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 3 Apr 2009 10:19:20 +0000
(12:19 +0200)
source3/smbd/oplock.c
patch
|
blob
|
history
diff --git
a/source3/smbd/oplock.c
b/source3/smbd/oplock.c
index d0d228e78cecb79ad59535afef9ab6517766d2df..6add9f5fc1b787ae05e33730d5c54c5cf5b9cf45 100644
(file)
--- 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();
}