aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexnick <alexnick@ydb.tech>2022-09-21 14:23:40 +0300
committeralexnick <alexnick@ydb.tech>2022-09-21 14:23:40 +0300
commit910ebbcaff2fe66589aaad2fe0cdc1fb4e857d06 (patch)
treebed3998c6248959bea84dd7c13d852640e734125
parent3c4e9491da8a5ee5d6aab7fd6511531cd6c83ca9 (diff)
downloadydb-910ebbcaff2fe66589aaad2fe0cdc1fb4e857d06.tar.gz
fix for ChooseProxy
-rw-r--r--ydb/core/client/server/grpc_proxy_status.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/core/client/server/grpc_proxy_status.cpp b/ydb/core/client/server/grpc_proxy_status.cpp
index 827335ad40..802a943c3e 100644
--- a/ydb/core/client/server/grpc_proxy_status.cpp
+++ b/ydb/core/client/server/grpc_proxy_status.cpp
@@ -100,6 +100,7 @@ public:
Y_VERIFY(!nodesInfo->Nodes.empty());
Nodes.reserve(nodesInfo->Nodes.size());
for (const auto& ni : nodesInfo->Nodes) {
+ if (ni.Port != AppData(ctx)->PQConfig.GetLegacyApiPort()) continue;
NodeNames[ni.NodeId] = ni.Host;
NodeDataCenter[ni.NodeId] = ni.Location.GetDataCenterId();
SendRequest(ni.NodeId, ctx);