s3: Add an error msg when a share mode entry is discarded
authorVolker Lendecke <vl@samba.org>
Mon, 20 Feb 2012 15:00:50 +0000 (16:00 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 22 Feb 2012 14:48:06 +0000 (15:48 +0100)
source3/locking/share_mode_lock.c

index 2152591ed27bf7c5b29bd7745bb15772781bb418..de8cc3ce8bde1824030c36a1aeffdc204237880c 100644 (file)
@@ -176,6 +176,8 @@ static struct share_mode_data *parse_share_modes(TALLOC_CTX *mem_ctx,
        while (i < d->num_share_modes) {
                struct share_mode_entry *e = &d->share_modes[i];
                if (!pid_exists[i]) {
+                       DEBUG(10, ("wipe non-existent pid %s\n",
+                                  procid_str_static(&e->pid)));
                        *e = d->share_modes[d->num_share_modes-1];
                        d->num_share_modes -= 1;
                        d->modified = True;