s3: Remove a user of procid_is_me
authorVolker Lendecke <vl@samba.org>
Fri, 15 Jun 2012 12:29:08 +0000 (14:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Jun 2012 06:27:30 +0000 (08:27 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/locking/locking.c

index b3bd8dd5284963ffd5c65bc9d06434e781970cea..c7d8fb4fa468064fb301093c696d0ec0f0640308 100644 (file)
@@ -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;
                }