Skip to content

Commit

Permalink
fix review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
debnatkh committed Jan 16, 2025
1 parent 261566b commit 7bcc45a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloud/filestore/apps/client/lib/find_garbage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace {
struct TNode
{
ui64 Id = 0;
ui64 ParentId;
ui64 ParentId = 0;
TString Name;
TString ShardFileSystemId;
TString ShardNodeName;
Expand Down Expand Up @@ -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<ui64>() - Size;
const auto rs = Max<ui64>() - 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);
}
};

Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 7bcc45a

Please sign in to comment.