]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:g_lock: let g_lock_trylock() debug if exclusive locker died
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Jul 2026 11:21:26 +0000 (13:21 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 4 Aug 2026 09:51:32 +0000 (09:51 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/g_lock.c

index d091fc05a2b638ae23c21dca8edc1cf822e15292..1a62c59b1a05d49c041f712e3fcf5874df79019b 100644 (file)
@@ -727,6 +727,8 @@ static NTSTATUS g_lock_trylock(
                if (!self_exclusive) {
                        bool exists = serverid_exists(&lck.exclusive);
                        if (!exists) {
+                               DBG_INFO("Exclusive locker %s died -- removing\n",
+                                        server_id_str_buf(lck.exclusive, &tmp));
                                lck.exclusive = (struct server_id) { .pid=0 };
                                goto noexclusive;
                        }