Skip to content

Commit 4466f89

Browse files
committed
allowBanned=false for preferred GetConnection
1 parent c5c8c21 commit 4466f89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Changed allowBanned=false for preferred node connections
2+
13
## v3.101.0
24
* Added `table.Client.ReadRows` method with internal retries
35

internal/balancer/connections_state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (s *connectionsState) GetConnection(ctx context.Context) (_ conn.Conn, fail
8989
func (s *connectionsState) preferConnection(ctx context.Context) conn.Conn {
9090
if nodeID, hasPreferEndpoint := endpoint.ContextNodeID(ctx); hasPreferEndpoint {
9191
c := s.connByNodeID[nodeID]
92-
if c != nil && isOkConnection(c, true) {
92+
if c != nil && isOkConnection(c, false) {
9393
return c
9494
}
9595
}

0 commit comments

Comments
 (0)