Skip to content

Commit

Permalink
added references
Browse files Browse the repository at this point in the history
  • Loading branch information
StekPerepolnen committed Jan 10, 2024
1 parent cb4193d commit f34e6fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/core/viewer/json_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -809,21 +809,21 @@ class TJsonNodes : public TViewerPipeClient<TJsonNodes> {
for (NKikimrViewer::TNodeInfo& nodeInfo : *result.MutableNodes()) {
if (Storage) {
{
auto cont(*nodeInfo.MutablePDisks());
auto& cont(*nodeInfo.MutablePDisks());
std::sort(cont.begin(), cont.end(), [](const NKikimrWhiteboard::TPDiskStateInfo& a, const NKikimrWhiteboard::TPDiskStateInfo& b) -> bool {
return a.GetPath() < b.GetPath();
});
}
{
auto cont(*nodeInfo.MutableVDisks());
auto& cont(*nodeInfo.MutableVDisks());
std::sort(cont.begin(), cont.end(), [](const NKikimrWhiteboard::TVDiskStateInfo& a, const NKikimrWhiteboard::TVDiskStateInfo& b) -> bool {
return VDiskIDFromVDiskID(a.GetVDiskId()) < VDiskIDFromVDiskID(b.GetVDiskId());
});
}
}
if (Tablets) {
{
auto cont(*nodeInfo.MutableTablets());
auto& cont(*nodeInfo.MutableTablets());
std::sort(cont.begin(), cont.end(), [](const NKikimrViewer::TTabletStateInfo& a, const NKikimrViewer::TTabletStateInfo& b) -> bool {
return a.GetType() < b.GetType();
});
Expand Down

0 comments on commit f34e6fe

Please sign in to comment.