Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp committed Dec 10, 2018
1 parent 7982488 commit 7ef4275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func runStmt(ctx context.Context, sctx sessionctx.Context, s sqlexec.Statement)
return rs, errors.Errorf("statement count %d exceeds the transaction limitation, autocommit = %t",
history.Count(), sctx.GetSessionVars().IsAutocommit())
}
err = se.NewTxn()
err = se.NewTxn(ctx)
// The transaction does not committed yet, we need to keep it in transaction.
// The last history could not be "commit"/"rollback" statement.
// It means it is impossible to start a new transaction at the end of the transaction.
Expand Down

0 comments on commit 7ef4275

Please sign in to comment.