fix bug of inc indegree of dag but parent push back failed

This commit is contained in:
obdev
2024-02-09 23:48:18 +00:00
committed by ob-robot
parent a5e25ac91e
commit 3b0e32ffb0
2 changed files with 3 additions and 1 deletions

View File

@ -131,9 +131,10 @@ int ObINodeWithChild::add_parent_node(ObINodeWithChild &parent)
{
int ret = OB_SUCCESS;
ObMutexGuard guard(lock_);
inc_indegree();
if (OB_FAIL(parent_.push_back(&parent))) {
COMMON_LOG(WARN, "failed to add parent", K(ret), K(parent));
} else {
inc_indegree();
}
return ret;
}