allow force stop archive

This commit is contained in:
wxhwang
2024-01-22 04:43:22 +00:00
committed by ob-robot
parent 09cd15492e
commit 932565d6ca
9 changed files with 95 additions and 7 deletions

View File

@ -312,7 +312,7 @@ int ObArchiveSchedulerService::process_()
if (OB_FAIL(ret)) {
} else if (no_dest) {
} else if (archive_mode.is_noarchivelog()) {
if (no_round || round.state_.is_stop()) {
if (no_round || round.state_.is_stop() || round.state_.is_stopping()) {
} else if (OB_FAIL(tenant_scheduler.disable_archive(dest_no))) {
LOG_WARN("failed to disable archive", K(ret), K(tenant_id), K(dest_no), K(dest_state));
}