Fix archive suspend hang

This commit is contained in:
taoshuning
2023-03-20 21:33:35 +08:00
committed by ob-robot
parent 019668ab57
commit e0948bd0a3
5 changed files with 20 additions and 2 deletions

View File

@ -199,6 +199,12 @@ bool ObArchiveRoundMgr::is_in_archive_status(const ArchiveKey &key) const
return key == key_ && log_archive_state_.is_doing();
}
bool ObArchiveRoundMgr::is_in_suspend_status(const ArchiveKey &key) const
{
RLockGuard guard(rwlock_);
return key == key_ && log_archive_state_.is_suspend();
}
bool ObArchiveRoundMgr::is_in_archive_stopping_status(const ArchiveKey &key) const
{
RLockGuard guard(rwlock_);