File tree Expand file tree Collapse file tree
java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ private SingleReadContext(Builder builder) {
205205 // with a multiplexed session to perform a round-robin channel selection. We are
206206 // passing a hint here to prefer random channel selection instead of doing GAX round-robin.
207207 // Also signal unbind so the grpc-gcp affinity map entry is cleaned up once the call
208- // completes. The retry path (prepareRetryOnDifferentGrpcChannel) does NOT carry this
209- // flag, so resumed streams will re-bind to a fresh key without early unbind.
208+ // completes. The unbind flag is preserved on retries via prepareRetryOnDifferentGrpcChannel.
210209 this .channelHint =
211210 getChannelHintOptions (
212211 session .getOptions (),
Original file line number Diff line number Diff line change @@ -639,9 +639,6 @@ && leader().distance <= MAX_LOCAL_REPLICA_DISTANCE) {
639639 }
640640 }
641641 for (int index = 0 ; index < tablets .size (); index ++) {
642- if (checkedLeader && index == leaderIndex ) {
643- continue ;
644- }
645642 CachedTablet tablet = tablets .get (index );
646643 if (!tablet .matches (directedReadOptions )) {
647644 continue ;
You can’t perform that action at this time.
0 commit comments