Allowing to change parent during waiting rebuild.

This commit is contained in:
hf0
2021-09-27 21:03:37 +08:00
committed by wangzelin.wzl
parent 64b53b6a17
commit e2f3a0741a

View File

@ -1649,12 +1649,6 @@ int ObLogCascadingMgr::check_parent_state(const int64_t now, const common::ObReg
}
last_check_log_ts_ = next_replay_log_ts;
last_check_parent_time_ = now;
} else if (state_mgr_->is_need_rebuild()) {
if (REACH_TIME_INTERVAL(5 * 1000 * 1000)) {
CLOG_LOG(INFO, "wait rebuild", K_(partition_key));
}
last_check_log_ts_ = next_replay_log_ts;
last_check_parent_time_ = now;
} else if (last_check_log_ts_ == next_replay_log_ts && need_update_parent_()) {
// self is unsync && reach time interval, need update parent
if (partition_reach_time_interval(5 * 60 * 1000 * 1000, check_parent_invalid_warn_time_)) {