Skip to content

Commit

Permalink
fix: 修复运行query失败后出现frame unlock while not holding read lock的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mhwwhu committed Oct 26, 2024
1 parent e1aa56d commit 4806381
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/observer/net/plain_communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4806381

Please sign in to comment.