Allowing to change parent during waiting rebuild.
This commit is contained in:
@ -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_log_ts_ = next_replay_log_ts;
|
||||||
last_check_parent_time_ = now;
|
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_()) {
|
} else if (last_check_log_ts_ == next_replay_log_ts && need_update_parent_()) {
|
||||||
// self is unsync && reach time interval, 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_)) {
|
if (partition_reach_time_interval(5 * 60 * 1000 * 1000, check_parent_invalid_warn_time_)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user