提交 9aac19dc 编写于 作者: O obdev 提交者: wangzelin.wzl

fix block file unexpected gc op.

上级 26390f8e
......@@ -97,7 +97,7 @@ struct PriorityV1 : public AbstractPriority
OB_UNIS_VERSION(1);
public:
PriorityV1() : is_observer_stopped_(false), is_server_stopped_(false), is_zone_stopped_(false),
is_primary_region_(false), is_in_blacklist_(false), is_manual_leader_(false),
is_primary_region_(false), log_ts_(0), is_in_blacklist_(false), is_manual_leader_(false),
zone_priority_(INT64_MAX) {}
// 判断该优先级策略是否适用于特定的版本
virtual uint64_t get_started_version() const override { return CLUSTER_VERSION_4_0_0_0; }
......
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册