From: Ralph Boehme Date: Thu, 2 Jul 2020 12:09:15 +0000 (+0200) Subject: smbd: increase loglevel when leases_db_del() with anything then NT_STATUS_NOT_FOUND X-Git-Tag: samba-4.13.0rc1~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbb8bbe1243eb2a0351dc2422929278f85a99e26;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index a108ebba00d..c3fe5a246e2 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -733,8 +733,13 @@ NTSTATUS remove_lease_if_stale(struct share_mode_lock *lck, status = leases_db_del(client_guid, lease_key, &d->id); if (!NT_STATUS_IS_OK(status)) { - DBG_DEBUG("leases_db_del failed: %s\n", - nt_errstr(status)); + int level = DBGLVL_DEBUG; + + if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { + level = DBGLVL_ERR; + } + DBG_PREFIX(level, ("leases_db_del failed: %s\n", + nt_errstr(status))); } return status; }