[CP] Fix ps execute location leader not exist not retry

This commit is contained in:
obdev
2022-05-05 14:17:52 +08:00
committed by wangzelin.wzl
parent e2a21af4f1
commit 1da9b5316b
3 changed files with 11 additions and 4 deletions

View File

@ -368,9 +368,10 @@ int ObInnerSQLConnection::process_retry(
(OB_NOT_MASTER == last_ret || OB_PARTITION_NOT_EXIST == last_ret);
ObQueryRetryInfo& retry_info = inner_session_.get_retry_info_for_update();
const bool non_blocking_refresh = false;
bool repeatable_stmt = (ObStmt::is_dml_stmt(result_set.get_stmt_type()) ||
ObStmt::is_ddl_stmt(result_set.get_stmt_type(), result_set.has_global_variable()) ||
ObStmt::is_dcl_stmt(result_set.get_stmt_type()));
bool repeatable_stmt =
(ObStmt::is_dml_stmt(result_set.get_stmt_type()) ||
ObStmt::is_ddl_stmt(result_set.get_stmt_type(), result_set.has_global_variable()) ||
ObStmt::is_dcl_stmt(result_set.get_stmt_type()) || ObStmt::is_execute_stmt(result_set.get_stmt_type()));
int64_t now = ObTimeUtility::current_time();
if (now >= abs_timeout_us) {
ret = OB_TIMEOUT;