Skip to content

Commit

Permalink
fixing domain appearing in tenantinfo handler (#13024)
Browse files Browse the repository at this point in the history
  • Loading branch information
adameat authored Dec 26, 2024
1 parent 5d2ab94 commit 24d1f57
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ydb/core/viewer/viewer_tenantinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,19 @@ class TJsonTenantInfo : public TViewerPipeClient {
NavigateKeySetResult[Database] = MakeRequestSchemeCacheNavigate(Database);
if (Database != DomainPath) {
TenantStatusResponses[Database] = MakeRequestConsoleGetTenantStatus(Database);
} else {
NKikimrViewer::TTenant& tenant = TenantBySubDomainKey[rootPathId];
tenant.SetId(RootId);
tenant.SetState(Ydb::Cms::GetDatabaseStatusResult::RUNNING);
tenant.SetType(NKikimrViewer::Domain);
tenant.SetName(DomainPath);
RequestMetadataCacheHealthCheck(DomainPath);
}
}

if (Database.empty() || Database == DomainPath) {
NKikimrViewer::TTenant& tenant = TenantBySubDomainKey[rootPathId];
tenant.SetId(RootId);
tenant.SetState(Ydb::Cms::GetDatabaseStatusResult::RUNNING);
tenant.SetType(NKikimrViewer::Domain);
tenant.SetName(DomainPath);
RequestMetadataCacheHealthCheck(DomainPath);
NavigateKeySetResult[DomainPath] = MakeRequestSchemeCacheNavigate(DomainPath);
}

HiveDomainStats[RootHiveId] = MakeRequestHiveDomainStats(RootHiveId);
if (Storage) {
HiveStorageStats[RootHiveId] = MakeRequestHiveStorageStats(RootHiveId);
Expand Down

0 comments on commit 24d1f57

Please sign in to comment.