revise the error code loss

This commit is contained in:
SevenJ-swj
2023-07-27 04:54:04 +00:00
committed by ob-robot
parent e91a059c09
commit fbdc721784
14 changed files with 26 additions and 24 deletions

View File

@ -479,7 +479,7 @@ int ObIDag::add_child(ObIDag &child)
if (OB_NOT_NULL(child.get_dag_net())) { // already belongs to other dag_net
ret = OB_INVALID_ARGUMENT;
COMMON_LOG(WARN, "child's dag net is not null", K(ret), K(child));
} else if (child.deep_copy_children(get_child_nodes())) {
} else if (OB_FAIL(child.deep_copy_children(get_child_nodes()))) {
COMMON_LOG(WARN, "failed to deep copy child", K(ret), K(child));
} else if (OB_FAIL(dag_net_->add_dag_into_dag_net(child))) {
COMMON_LOG(WARN, "failed to add dag into dag net", K(ret), K(child), KPC(dag_net_));