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

@ -1154,9 +1154,14 @@ int ObResultSet::init_cmd_exec_context(ObExecContext &exec_ctx)
}
// obmp_query中重试整个SQL之前,可能需要调用本接口来刷新Location,以避免总是发给了错误的服务器
void ObResultSet::refresh_location_cache(bool is_nonblock, int err)
void ObResultSet::refresh_location_cache_by_errno(bool is_nonblock, int err)
{
DAS_CTX(get_exec_context()).get_location_router().refresh_location_cache(is_nonblock, err);
DAS_CTX(get_exec_context()).get_location_router().refresh_location_cache_by_errno(is_nonblock, err);
}
void ObResultSet::force_refresh_location_cache(bool is_nonblock, int err)
{
DAS_CTX(get_exec_context()).get_location_router().force_refresh_location_cache(is_nonblock, err);
}
// 告诉mysql是否要传入一个EndTransCallback