Skip to content

Commit

Permalink
Fix GetDomainName KIKIMR-20642
Browse files Browse the repository at this point in the history
  • Loading branch information
pixcc committed Jan 19, 2024
1 parent d142f42 commit 5744566
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions ydb/core/mind/hive/hive_domains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ void THive::Handle(TEvTxProxySchemeCache::TEvNavigateKeySetResult::TPtr& ev) {
Domains[key].Path = path;
if (entry.DomainInfo) {
Domains[key].HiveId = entry.DomainInfo->Params.GetHive();
if (Domains[key].ServerlessComputeResourcesMode.Empty()) {
Domains[key].ServerlessComputeResourcesMode = entry.DomainInfo->ServerlessComputeResourcesMode;
}
}
BLOG_D("Received NavigateKeySetResult for domain " << entry.TableId << " with path " << path);
Execute(CreateUpdateDomain(key));
Expand All @@ -78,18 +75,11 @@ void THive::Handle(TEvHive::TEvUpdateDomain::TPtr& ev) {
}

TString THive::GetDomainName(TSubDomainKey domain) {
auto itDomain = Domains.find(domain);
if (itDomain != Domains.end()) {
if (!itDomain->second.Path.empty()) {
return itDomain->second.Path;
}
} else {
SeenDomain(domain);
}
if (domain == TSubDomainKey()) {
return "<empty-subdomain-key>";
}
return TStringBuilder() << domain;
SeenDomain(domain);
return Domains.at(domain).Path;
}

} // NHive
Expand Down

0 comments on commit 5744566

Please sign in to comment.