summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-15 14:29:08 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-21 08:27:30 +0200
commitca9a734e19e43b9e00bbb6bdd644284b351b9cde (patch)
treedad5c2e68522bf1148f4b0b0770ed5f4a97355c3 /source3/locking
parent6289fcffd7de288aa67eff7bee11081aae195104 (diff)
downloadsamba-ca9a734e19e43b9e00bbb6bdd644284b351b9cde.tar.gz
samba-ca9a734e19e43b9e00bbb6bdd644284b351b9cde.tar.bz2
samba-ca9a734e19e43b9e00bbb6bdd644284b351b9cde.zip
s3: Remove a user of procid_is_me
Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index b3bd8dd528..c7d8fb4fa4 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -482,6 +482,7 @@ bool rename_share_filename(struct messaging_context *msg_ctx,
int i;
bool strip_two_chars = false;
bool has_stream = smb_fname_dst->stream_name != NULL;
+ struct server_id self_pid = messaging_server_id(msg_ctx);
DEBUG(10, ("rename_share_filename: servicepath %s newname %s\n",
servicepath, smb_fname_dst->base_name));
@@ -552,7 +553,7 @@ bool rename_share_filename(struct messaging_context *msg_ctx,
se->name_hash = new_name_hash;
/* But not to ourselves... */
- if (procid_is_me(&se->pid)) {
+ if (procid_equal(&se->pid, &self_pid)) {
continue;
}