Skip to content

Commit f34e6fe

Browse files
added references
1 parent cb4193d commit f34e6fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/core/viewer/json_nodes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,21 +809,21 @@ class TJsonNodes : public TViewerPipeClient<TJsonNodes> {
809809
for (NKikimrViewer::TNodeInfo& nodeInfo : *result.MutableNodes()) {
810810
if (Storage) {
811811
{
812-
auto cont(*nodeInfo.MutablePDisks());
812+
auto& cont(*nodeInfo.MutablePDisks());
813813
std::sort(cont.begin(), cont.end(), [](const NKikimrWhiteboard::TPDiskStateInfo& a, const NKikimrWhiteboard::TPDiskStateInfo& b) -> bool {
814814
return a.GetPath() < b.GetPath();
815815
});
816816
}
817817
{
818-
auto cont(*nodeInfo.MutableVDisks());
818+
auto& cont(*nodeInfo.MutableVDisks());
819819
std::sort(cont.begin(), cont.end(), [](const NKikimrWhiteboard::TVDiskStateInfo& a, const NKikimrWhiteboard::TVDiskStateInfo& b) -> bool {
820820
return VDiskIDFromVDiskID(a.GetVDiskId()) < VDiskIDFromVDiskID(b.GetVDiskId());
821821
});
822822
}
823823
}
824824
if (Tablets) {
825825
{
826-
auto cont(*nodeInfo.MutableTablets());
826+
auto& cont(*nodeInfo.MutableTablets());
827827
std::sort(cont.begin(), cont.end(), [](const NKikimrViewer::TTabletStateInfo& a, const NKikimrViewer::TTabletStateInfo& b) -> bool {
828828
return a.GetType() < b.GetType();
829829
});

0 commit comments

Comments
 (0)