[refacotr] avoid print too much SUCCESS warning message

This commit is contained in:
raywill
2023-06-16 08:42:30 +00:00
committed by ob-robot
parent df2252c252
commit f0e14d228f

View File

@ -581,10 +581,10 @@ public:
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
// **replace** error code & error msg // **replace** error code & error msg
if (new_error_code != ObPxTask::TASK_DEFAULT_RET_VALUE) { if (new_error_code != ObPxTask::TASK_DEFAULT_RET_VALUE) {
if ((OB_SUCCESS == current_error_code) || if ((OB_SUCCESS == current_error_code ||
((OB_ERR_SIGNALED_IN_PARALLEL_QUERY_SERVER == current_error_code || OB_ERR_SIGNALED_IN_PARALLEL_QUERY_SERVER == current_error_code ||
OB_GOT_SIGNAL_ABORTING == current_error_code) && OB_GOT_SIGNAL_ABORTING == current_error_code) &&
OB_SUCCESS != new_error_code)) { OB_SUCCESS != new_error_code) {
current_error_code = new_error_code; current_error_code = new_error_code;
FORWARD_USER_ERROR(new_error_code, from.msg_); FORWARD_USER_ERROR(new_error_code, from.msg_);
} }