Skip to content

Commit

Permalink
(tidb-8.1) Use global txn scope when validating ts (#1582)
Browse files Browse the repository at this point in the history
 

Signed-off-by: ekexium <[email protected]>
  • Loading branch information
ekexium authored Feb 18, 2025
1 parent af292c2 commit cd84cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,7 @@ func (s *RegionRequestSender) validateReadTS(ctx context.Context, req *tikvrpc.R
default:
return nil
}
return s.readTSValidator.ValidateReadTS(ctx, readTS, req.StaleRead, &oracle.Option{TxnScope: req.TxnScope})
return s.readTSValidator.ValidateReadTS(ctx, readTS, req.StaleRead, &oracle.Option{TxnScope: oracle.GlobalTxnScope})
}

type staleReadMetricsCollector struct {
Expand Down

0 comments on commit cd84cab

Please sign in to comment.