[to #50045111] ps cursor support packet retry

This commit is contained in:
LiuYoung00
2023-06-05 04:50:51 +00:00
committed by ob-robot
parent e4f9ef434a
commit 121b93052a
3 changed files with 36 additions and 2 deletions

View File

@ -3782,7 +3782,7 @@ int ObSPIService::dbms_cursor_open(ObPLExecCtx *ctx,
*spi_result.get_result_set(),
ret,
cli_ret,
true,
cursor.is_ps_cursor() ? false : true,
true,
cursor.is_ps_cursor() ? false : true);
LOG_WARN("failed to fill_cursor, check if need retry",
@ -3840,7 +3840,8 @@ int ObSPIService::dbms_cursor_open(ObPLExecCtx *ctx,
}
ret = OB_SUCCESS == ret ? close_ret : ret;
retry_cnt++;
} while (RETRY_TYPE_NONE != retry_ctrl.get_retry_type());
} while ((!cursor.is_ps_cursor() && RETRY_TYPE_NONE != retry_ctrl.get_retry_type())
|| (cursor.is_ps_cursor() && RETRY_TYPE_LOCAL == retry_ctrl.get_retry_type()));
session->set_query_start_time(old_query_start_time);
}