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

fix: 修复运行query失败后出现frame unlock while not holding read lock的问题 #471

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: 修复运行query失败后出现frame unlock while not holding read lock的问题
  • Loading branch information
mhwwhu committed Oct 26, 2024
commit 48063813510cc36dffc9bd9e700608a102fba26c
5 changes: 5 additions & 0 deletions src/observer/net/plain_communicator.cpp
Original file line number Diff line number Diff line change
@@ -245,6 +245,11 @@ RC PlainCommunicator::write_result_internal(SessionEvent *event, bool &need_disc
}

if (OB_FAIL(rc)) {
// 失败时也close sql_result, 防止出现"frame unlock while not holding read lock"
RC rc_close = sql_result->close();
if (OB_SUCC(rc)) {
rc = rc_close;
}
return rc;
}