fix block file unexpected gc op.

This commit is contained in:
obdev
2022-10-28 11:07:18 +00:00
committed by wangzelin.wzl
parent 26390f8ee1
commit 9aac19dcde
2 changed files with 2 additions and 1 deletions

View File

@ -639,6 +639,7 @@ bool PalfEnvImpl::LogGetRecycableFileCandidate::operator()(const LSKey &palf_id,
// first uncommitted log before base_lsn.
} else if (OB_ENTRY_NOT_EXIST == ret
|| OB_NO_SUCH_FILE_OR_DIRECTORY == ret
|| min_using_block_id < min_block_id
|| min_using_block_id - min_block_id < 2) {
PALF_LOG(TRACE, "can not recycle blocks, need keep at least two blocks or has been concurrently"
" with rebuild, skip it",