diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 9a328690a70..578691c4310 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -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; } diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 4aa11e2d097..95176331175 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -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; }