Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick: couple of updates #19968

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

daviszhen
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue ##19589

#18601

#19764

What this PR does / why we need it:

1, 处理rollback,commit,new txn,IncrStatementID,RollbackLastStatement的接口panic
2, 复用txnop的对象。每个前台session只创建一次。
3,
原因:parseStmtExecute可能返回error了。导致prepareStmt为nil. 从prepareStmt取值放到了err判断之前。

修改:从prepareStmt取值放到了err判断之后。

4,

  • 修改recover捕获后,err被吞了。
  • 修改lint的recover加错的白名单。

5, 改进 后台sql的执行。

处理rollback,commit,new txn,IncrStatementID,RollbackLastStatement的接口panic

Approved by: @qingxinhome
原因:parseStmtExecute可能返回error了。导致prepareStmt为nil. 从prepareStmt取值放到了err判断之前。

修改:从prepareStmt取值放到了err判断之后。

Approved by: @qingxinhome
1,  修改recover捕获后,err被吞了。
2,  修改lint的recover加错的白名单。

Approved by: @qingxinhome
改进 后台sql的执行。

Approved by: @qingxinhome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working kind/enhancement size/L Denotes a PR that changes [500,999] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants