Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Nov 29, 2022
1 parent 05e5d82 commit 38e1593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planner/core/find_best_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ func (ds *DataSource) findBestTask(prop *property.PhysicalProperty, planCounter
}

// if the path is the point get range path with for update lock, we should forbid tiflash as it's store path.
if path.StoreType == kv.TiFlash && ds.isForUpdateRead && ds.ctx.GetSessionVars().TxnCtx.IsExplicit {
if path.StoreType == kv.TiFlash && ds.isForUpdateRead && !ds.ctx.GetSessionVars().IsAutocommit() {
if ds.isPointGetConditions() {
continue
}
Expand Down

0 comments on commit 38e1593

Please sign in to comment.