Skip to content

Commit

Permalink
(tidb-8.5) Do not set txn scope in snapshot (#1568)
Browse files Browse the repository at this point in the history
ref pingcap/tidb#59402

Signed-off-by: ekexium <[email protected]>
  • Loading branch information
ekexium authored Feb 12, 2025
1 parent d66e460 commit d5565b4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions txnkv/txnsnapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ func (s *KVSnapshot) batchGetSingleRegion(bo *retry.Backoffer, batch batchKeys,
matchStoreLabels := s.mu.matchStoreLabels
replicaAdjuster := s.mu.replicaReadAdjuster
s.mu.RUnlock()
req.TxnScope = scope
req.ReadReplicaScope = scope
if isStaleness {
req.EnableStaleWithMixedReplicaRead()
Expand Down Expand Up @@ -686,7 +685,6 @@ func (s *KVSnapshot) get(ctx context.Context, bo *retry.Backoffer, k []byte) ([]
scope := s.mu.readReplicaScope
replicaAdjuster := s.mu.replicaReadAdjuster
s.mu.RUnlock()
req.TxnScope = scope
req.ReadReplicaScope = scope
var ops []locate.StoreSelectorOption
if isStaleness {
Expand Down

0 comments on commit d5565b4

Please sign in to comment.