s3:locking: log all g_lock_writev_data() errors at level 0
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Sep 2022 18:39:19 +0000 (20:39 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:34 +0000 (00:34 +0000)
These should never fail without notice.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c

index ae02d812aa9644e0ff33ea287ee75d10a3bc3e52..9433aae17f73b1369de5690d0c285180d5e8c448 100644 (file)
@@ -538,8 +538,8 @@ static NTSTATUS locking_tdb_data_store(
                 */
                status = g_lock_write_data(lock_ctx, key, NULL, 0);
                if (!NT_STATUS_IS_OK(status)) {
-                       DBG_DEBUG("g_lock_writev_data() failed: %s\n",
-                                 nt_errstr(status));
+                       DBG_ERR("g_lock_writev_data() failed: %s\n",
+                               nt_errstr(status));
                }
                return status;
        }
@@ -572,8 +572,8 @@ static NTSTATUS locking_tdb_data_store(
 
        status = g_lock_writev_data(lock_ctx, key, dbufs, ARRAY_SIZE(dbufs));
        if (!NT_STATUS_IS_OK(status)) {
-               DBG_DEBUG("g_lock_writev_data() failed: %s\n",
-                         nt_errstr(status));
+               DBG_ERR("g_lock_writev_data() failed: %s\n",
+                       nt_errstr(status));
        }
        return status;
 }