From dd1de0cdfe4dc95dfe064ac0e488166895296a3e Mon Sep 17 00:00:00 2001 From: Urmas Rist Date: Thu, 19 Sep 2024 14:56:30 +0300 Subject: [PATCH] chore: Add error log for truncate --- src/chunkserver/hddspacemgr.cc | 1 - src/master/matoclserv.cc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunkserver/hddspacemgr.cc b/src/chunkserver/hddspacemgr.cc index 15edb938..ec177694 100644 --- a/src/chunkserver/hddspacemgr.cc +++ b/src/chunkserver/hddspacemgr.cc @@ -78,7 +78,6 @@ #include "chunkserver/chartsdata.h" #include "chunkserver/chunk_filename_parser.h" #include "config/cfg.h" ->>>>>>> 6adb2210 (refactor(config): Split config management from common library) #include "common/chunk_version_with_todel_flag.h" #include "common/crc.h" #include "common/datapack.h" diff --git a/src/master/matoclserv.cc b/src/master/matoclserv.cc index 0f0e0ec4..db373734 100644 --- a/src/master/matoclserv.cc +++ b/src/master/matoclserv.cc @@ -2251,6 +2251,7 @@ void matoclserv_fuse_truncate(matoclserventry *eptr, PacketHeader header, const if (status == SAUNAFS_STATUS_OK) { serializer->serializeFuseTruncate(reply, type, messageId, attr); } else { + safs::log_debug("matoclserv_fuse_truncate: Failed to truncate: {} (code {})", saunafs_error_string(status)); serializer->serializeFuseTruncate(reply, type, messageId, status); } matoclserv_createpacket(eptr, std::move(reply));