Skip to content

Commit 48160db

Browse files
authored
fix garbage in describe built with scheme cache response (#6017)
1 parent a4d132e commit 48160db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ydb/core/viewer/json_describe.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,12 @@ class TJsonDescribe : public TViewerPipeClient<TJsonDescribe> {
201201
TAutoPtr<NKikimrViewer::TEvDescribeSchemeInfo> GetCacheDescribeSchemeInfo() {
202202
const auto& entry = CacheResult->Request.Get()->ResultSet.front();
203203
const auto& path = Event->Get()->Request.GetParams().Get("path");
204-
const auto& pathId = TPathId();
205204
const auto& schemeShardId = entry.DomainInfo->DomainKey.OwnerId;
206205

207206
TAutoPtr<NKikimrViewer::TEvDescribeSchemeInfo> result(new NKikimrViewer::TEvDescribeSchemeInfo());
208207
result->SetPath(path);
209-
result->SetPathId(pathId.LocalPathId);
210-
result->SetPathOwnerId(pathId.OwnerId);
208+
result->SetPathId(entry.Self->Info.GetPathId());
209+
result->SetPathOwnerId(entry.Self->Info.GetSchemeshardId());
211210

212211
auto* pathDescription = result->MutablePathDescription();
213212
auto* self = pathDescription->MutableSelf();

0 commit comments

Comments
 (0)