[CP] [to #54326346] before process set session in retry need consider the original state

This commit is contained in:
LiuYoung00 2024-02-09 06:55:58 +00:00 committed by ob-robot
parent 4a59aa128d
commit 1b95cb059a

View File

@ -254,7 +254,9 @@ int ObMPStmtPrexecute::before_process()
K(ret), K(cli_ret), K(get_retry_ctrl().need_retry()), K(sql_));
ret = cli_ret;
}
session->set_session_in_retry(retry_ctrl_.need_retry());
if (OB_FAIL(ret)) {
session->set_session_in_retry(retry_ctrl_.need_retry());
}
}
}
} while (RETRY_TYPE_LOCAL == retry_ctrl_.get_retry_type());