Skip to content

Commit

Permalink
*: fix wrong modification for pingcap#33818
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao committed Apr 8, 2022
1 parent cff88d7 commit f38ada1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@ func (s *session) cachedPlanExec(ctx context.Context,
// IsPointGetWithPKOrUniqueKeyByAutoCommit
func (s *session) IsCachedExecOk(ctx context.Context, preparedStmt *plannercore.CachedPrepareStmt, isStaleness bool) (bool, error) {
prepared := preparedStmt.PreparedAst
if isStaleness {
if prepared.CachedPlan == nil || isStaleness {
return false, nil
}
// check auto commit
Expand Down

0 comments on commit f38ada1

Please sign in to comment.