[Archive] Fix archive state machine

This commit is contained in:
obdev
2024-03-06 02:50:43 +00:00
committed by ob-robot
parent 6a522d576c
commit bf13b4b3a8

View File

@ -370,7 +370,7 @@ int ObArchiveService::check_if_need_switch_log_archive_(
ARCHIVE_LOG(INFO, "round lag, need_stop first", K(local_key),
K(local_state), K(attr), K_(archive_round_mgr));
} else if (local_state.is_doing()
&& (tenant_state.is_suspend() || tenant_state.is_suspend())
&& (tenant_state.is_suspending() || tenant_state.is_suspend())
&& ! local_round_lag) {
op = ArchiveRoundOp::SUSPEND;
ARCHIVE_LOG(INFO, "need_suspend", K(local_key), K(local_state), K(attr), K_(archive_round_mgr));