From 7bcc45a54f0c289d1875f83e9494ff3699900606 Mon Sep 17 00:00:00 2001 From: Maxim Deb Natkh Date: Thu, 16 Jan 2025 18:02:31 +0100 Subject: [PATCH] fix review issues --- cloud/filestore/apps/client/lib/find_garbage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cloud/filestore/apps/client/lib/find_garbage.cpp b/cloud/filestore/apps/client/lib/find_garbage.cpp index eb8e05e05f2..afeb2521fad 100644 --- a/cloud/filestore/apps/client/lib/find_garbage.cpp +++ b/cloud/filestore/apps/client/lib/find_garbage.cpp @@ -15,7 +15,7 @@ namespace { struct TNode { ui64 Id = 0; - ui64 ParentId; + ui64 ParentId = 0; TString Name; TString ShardFileSystemId; TString ShardNodeName; @@ -141,15 +141,15 @@ class TFindGarbageCommand final struct TResult { TString Shard; - TString Name; + TString NodeName; ui64 Size = 0; bool operator<(const TResult& rhs) const { const auto s = Max() - Size; const auto rs = Max() - rhs.Size; - return std::tie(Shard, s, Name) < - std::tie(rhs.Shard, rs, rhs.Name); + return std::tie(Shard, s, NodeName) < + std::tie(rhs.Shard, rs, rhs.NodeName); } }; @@ -178,7 +178,7 @@ class TFindGarbageCommand final Sort(results.begin(), results.end()); for (const auto& result: results) { - Cout << result.Shard << "\t" << result.Name << "\t" + Cout << result.Shard << "\t" << result.NodeName << "\t" << FormatByteSize(result.Size) << " (" << result.Size << ")" << "\n";