From b0c4f8020b8ccc5aa0739ceb1bbef59902906f6d Mon Sep 17 00:00:00 2001 From: ekexium Date: Tue, 11 Feb 2025 18:00:34 +0800 Subject: [PATCH] fix: do not set txnScope in snapshot Signed-off-by: ekexium --- txnkv/txnsnapshot/snapshot.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/txnkv/txnsnapshot/snapshot.go b/txnkv/txnsnapshot/snapshot.go index 00f2b5d5ef..6e87587133 100644 --- a/txnkv/txnsnapshot/snapshot.go +++ b/txnkv/txnsnapshot/snapshot.go @@ -417,7 +417,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.EnableStaleRead() @@ -639,7 +638,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 {