fix issue 9263606

This commit is contained in:
obdev
2022-07-06 17:34:10 +08:00
committed by wangzelin.wzl
parent 924deae1ac
commit e8452fc947

View File

@ -296,12 +296,11 @@ ObLink* ObLockWaitMgr::check_timeout()
iter->on_retry_lock(hash); iter->on_retry_lock(hash);
TRANS_LOG(INFO, "current task should be waken up", K(*iter)); TRANS_LOG(INFO, "current task should be waken up", K(*iter));
} else if (0 == iter->sessid_) { } else if (0 == iter->sessid_) {
// when lock wait in dag worker, session is not exist // do nothing, may be rpc plan, sessionid is not setted
need_check_session = false;
} else { } else {
// do nothing // do nothing
} }
if (need_check_session) { if (need_check_session && iter->sessid_ != 0) { // when lock wait in dag worker, session is not exist
sql::ObSQLSessionInfo* session_info = NULL; sql::ObSQLSessionInfo* session_info = NULL;
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
int tmp_ret = OB_SUCCESS; int tmp_ret = OB_SUCCESS;