fix das retry thread deadlock

This commit is contained in:
leslieyuchen
2023-08-24 07:40:33 +00:00
committed by ob-robot
parent a9fbca91d0
commit bb35a1f410
24 changed files with 105 additions and 81 deletions

View File

@ -580,6 +580,7 @@ OB_NOINLINE int ObMPQuery::process_with_tmp_context(ObSQLSessionInfo &session,
bool &need_disconnect)
{
int ret = OB_SUCCESS;
oceanbase::lib::Thread::WaitGuard guard(oceanbase::lib::Thread::WAIT_FOR_LOCAL_RETRY);
//create a temporary memory context to process retry or the rest sql of multi-query,
//avoid memory dynamic leaks caused by query retry or too many multi-query items
lib::ContextParam param;