aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxenoxeno <xeno@ydb.tech>2023-09-18 12:21:44 +0300
committerxenoxeno <xeno@ydb.tech>2023-09-18 12:44:28 +0300
commitb1528b323be234edf18604f475eaae81d733d66e (patch)
tree580dfa939746fc64ccebf0807f4ebb617bd49e48
parent47bb3e0e53b6063552344c97fc3b1892de4419c6 (diff)
downloadydb-b1528b323be234edf18604f475eaae81d733d66e.tar.gz
fix optimization for root database KIKIMR-19359
-rw-r--r--ydb/core/security/login_page.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/ydb/core/security/login_page.cpp b/ydb/core/security/login_page.cpp
index f3ada553e5..c01c7edc68 100644
--- a/ydb/core/security/login_page.cpp
+++ b/ydb/core/security/login_page.cpp
@@ -100,15 +100,10 @@ public:
const TDomainsInfo::TDomain& domain = *domainsInfo->Domains.begin()->second.Get();
TString rootDatabase = "/" + domain.Name;
ui64 rootSchemeShardTabletId = domain.SchemeRoot;
- if (true /*!Database.empty() && Database != rootDatabase*/) {
+ if (!Database.empty() && Database != rootDatabase) {
Database = rootDatabase;
-
- auto dest(MakeSchemeCacheID());
- auto actr = TlsActivationContext->ExecutorThread.ActorSystem->LookupLocalService(dest);
-
- ALOG_DEBUG(NActorsServices::HTTP, "Login: Requesting schemecache (" << dest << " -> " << actr << ") for database " << Database);
-
- Send(dest, new TEvTxProxySchemeCache::TEvNavigateKeySet(CreateNavigateKeySetRequest(Database).Release()));
+ ALOG_DEBUG(NActorsServices::HTTP, "Login: Requesting schemecache for database " << Database);
+ Send(MakeSchemeCacheID(), new TEvTxProxySchemeCache::TEvNavigateKeySet(CreateNavigateKeySetRequest(Database).Release()));
} else {
Database = rootDatabase;
RequestSchemeShard(rootSchemeShardTabletId);