Skip to content

Commit

Permalink
(tidb-8.5) Use global txn scope when validating ts (#1583)
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 d5565b4 commit 7da5131
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 @@ -1799,7 +1799,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 7da5131

Please sign in to comment.