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

follower pending状态允许disable sync

上级 0f331a9b
...@@ -1050,9 +1050,9 @@ int LogStateMgr::disable_sync() ...@@ -1050,9 +1050,9 @@ int LogStateMgr::disable_sync()
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
if (IS_NOT_INIT) { if (IS_NOT_INIT) {
ret = OB_NOT_INIT; ret = OB_NOT_INIT;
} else if (true == is_follower_pending_()) { // } else if (true == is_follower_pending_()) {
ret = OB_STATE_NOT_MATCH; // ret = OB_STATE_NOT_MATCH;
PALF_LOG(WARN, "can not disable sycn in follower pending", K(ret), KPC(this)); // PALF_LOG(WARN, "can not disable sycn in follower pending", K(ret), KPC(this));
} else { } else {
ATOMIC_STORE(&is_sync_enabled_, false); ATOMIC_STORE(&is_sync_enabled_, false);
PALF_LOG(INFO, "disable_sync success", K(ret), K_(palf_id), K(self_)); PALF_LOG(INFO, "disable_sync success", K(ret), K_(palf_id), K(self_));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册