[core] fix core dump in handle_register_parent_req

This commit is contained in:
BinChenn
2024-02-26 13:18:35 +00:00
committed by ob-robot
parent 1e465eb20d
commit 8d3c9b2d6e

View File

@ -2864,6 +2864,7 @@ int LogConfigMgr::handle_register_parent_req(const LogLearner &child, const bool
}
}
if (OB_SUCC(ret)){
SpinLockGuard guard(child_lock_);
LogLearner parent(self_, region_, child.register_time_us_);
if (reg_ret == REGISTER_DONE ||
reg_ret == REGISTER_CONTINUE ||