Skip to content

Commit

Permalink
chore: Add error log for truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
uristdwarf committed Nov 3, 2024
1 parent 08627d5 commit a945798
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/chunkserver/hddspacemgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/master/matoclserv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a945798

Please sign in to comment.