Skip to content

Commit

Permalink
executor: forbid stale read table with tiflash (#25561)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox committed Jun 18, 2021
1 parent 799591a commit 5794e8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2755,6 +2755,10 @@ func (b *executorBuilder) buildMPPGather(v *plannercore.PhysicalTableReader) Exe
// buildTableReader builds a table reader executor. It first build a no range table reader,
// and then update it ranges from table scan plan.
func (b *executorBuilder) buildTableReader(v *plannercore.PhysicalTableReader) Executor {
if v.StoreType != kv.TiKV && b.explicitStaleness {
b.err = errors.New("stale requests require tikv backend")
return nil
}
failpoint.Inject("checkUseMPP", func(val failpoint.Value) {
if val.(bool) != useMPPExecution(b.ctx, v) {
if val.(bool) {
Expand Down

0 comments on commit 5794e8c

Please sign in to comment.