From 58bc493c7794923b845647ab16bbfd3aafe07798 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 2 Jul 2020 14:09:15 +0200 Subject: [PATCH] smbd: increase loglevel when leases_db_del() with anything then NT_STATUS_NOT_FOUND BUG: https://bugzilla.samba.org/show_bug.cgi?id=14428 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher (backported from commit fbb8bbe1243eb2a0351dc2422929278f85a99e26) [slow@samba.org: remove_lease_if_stale() does not exist in 4.11] --- source3/locking/locking.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 8fa1237d6ad..5272a3dc829 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -704,13 +704,16 @@ static void remove_share_mode_lease(struct share_mode_data *d, } { + int level = DBGLVL_DEBUG; NTSTATUS status; status = leases_db_del(&e->client_guid, &e->lease_key, &d->id); - - DEBUG(10, ("%s: leases_db_del returned %s\n", __func__, + if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { + level = DBGLVL_ERR; + } + DBG_PREFIX(level, ("leases_db_del failed: %s\n", nt_errstr(status))); } } -- 2.47.2