diff options
author | Ralph Boehme <slow@samba.org> | 2020-07-02 14:09:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2020-07-02 15:25:31 +0000 |
commit | fbb8bbe1243eb2a0351dc2422929278f85a99e26 (patch) | |
tree | cdf8701037c3ee3a98d78067afee7c3d588ad7ad | |
parent | f3f330f61db983f6d213a097d9a4d91b1057ecb1 (diff) | |
download | samba-fbb8bbe1243eb2a0351dc2422929278f85a99e26.tar.gz |
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 <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/locking/locking.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |