fix(sync): when FpApplyQueueItems return -1, break loop
This commit is contained in:
parent
a1ed4b334c
commit
b107518b00
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue