提交 b107518b 编写于 作者: M Minghao Li

fix(sync): when FpApplyQueueItems return -1, break loop

上级 a1ed4b33
......@@ -1225,7 +1225,7 @@ void syncNodePreClose(SSyncNode* pSyncNode) {
while (1) {
int32_t aqItems = pSyncNode->pFsm->FpApplyQueueItems(pSyncNode->pFsm);
sTrace("vgId:%d, pre close, %d items in apply queue", pSyncNode->vgId, aqItems);
if (aqItems == 0) {
if (aqItems == 0 || aqItems == -1) {
break;
}
taosMsleep(20);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册