Skip to content

Commit

Permalink
s3: Remove a user of procid_is_me
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adam <[email protected]>
Signed-off-by: Stefan Metzmacher <[email protected]>
  • Loading branch information
vlendec authored and metze-samba committed Jun 21, 2012
1 parent 6289fcf commit ca9a734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source3/locking/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ca9a734

Please sign in to comment.