You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto it = databaseMapping.GetScopeToComputeDatabase().find(scope);
127
+
if (it != databaseMapping.GetScopeToComputeDatabase().end()) {
128
+
return it->second.HasSchemeConnection() ? it->second.GetSchemeConnection() : it->second.GetExecutionConnection(); // TODO: for backward compatibility, cleanup it after migration
129
+
}
130
+
131
+
if (databaseMapping.GetCommon().empty()) {
132
+
return NFq::NConfig::TYdbStorageConfig{};
133
+
}
134
+
135
+
auto config = databaseMapping.GetCommon(MultiHash(scope) % databaseMapping.GetCommon().size());
136
+
return config.HasSchemeConnection() ? config.GetSchemeConnection() : config.GetExecutionConnection(); // TODO: for backward compatibility, cleanup it after migration
0 commit comments