From: Stefan Metzmacher Date: Sat, 10 Sep 2022 18:39:19 +0000 (+0200) Subject: s3:locking: log g_lock_dump() error in locking_tdb_data_fetch() at level 0 X-Git-Tag: talloc-2.4.0~914 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4a94ec925cf09da20c6c4f40a879131ef4be67;p=thirdparty%2Fsamba.git s3:locking: log g_lock_dump() error in locking_tdb_data_fetch() at level 0 This should never fail without notice... Note we already checked for NT_STATUS_NOT_FOUND before. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 8df51a98589..4aa11e2d097 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -500,7 +500,8 @@ static NTSTATUS locking_tdb_data_fetch( goto done; } if (!NT_STATUS_IS_OK(status)) { - DBG_DEBUG("g_lock_dump failed: %s\n", nt_errstr(status)); + DBG_ERR("g_lock_dump failed: %s\n", + nt_errstr(status)); return status; } if (state.datalen == 0) {