s3:locking: log all share_mode_forall_entries() errors at level 0
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Sep 2022 18:39:19 +0000 (20:39 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
These should never fail without notice...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c
source3/locking/share_mode_lock.c

index 9a328690a70b5f4977e6620e237aa9e4f9c3d450..578691c4310b0b84343e41ed9f3a8937805174d3 100644 (file)
@@ -716,6 +716,7 @@ NTSTATUS remove_lease_if_stale(struct share_mode_lock *lck,
 
        ok = share_mode_forall_entries(lck, find_lease_ref_fn, &state);
        if (!ok) {
+               DBG_ERR("share_mode_forall_entries failed\n");
                return NT_STATUS_INTERNAL_ERROR;
        }
 
index 4aa11e2d097395a51f068b83d51083a9d428242f..95176331175e106a5007c412791d94af255f90d0 100644 (file)
@@ -1692,7 +1692,7 @@ static int share_entry_traverse_fn(struct file_id fid,
        ok = share_mode_forall_entries(
                &lck, share_entry_traverse_walker, state);
        if (!ok) {
-               DBG_DEBUG("share_mode_forall_entries failed\n");
+               DBG_ERR("share_mode_forall_entries failed\n");
                return false;
        }