提交 3850b58a 编写于 作者: S Shengliang Guan

fix: cannot close vnode while transferring snapshot

上级 5ecbcb10
...@@ -516,11 +516,11 @@ void vnodeSyncPreClose(SVnode *pVnode) { ...@@ -516,11 +516,11 @@ void vnodeSyncPreClose(SVnode *pVnode) {
syncLeaderTransfer(pVnode->sync); syncLeaderTransfer(pVnode->sync);
syncPreStop(pVnode->sync); syncPreStop(pVnode->sync);
while (!syncSnapshotRecving(pVnode->sync)) { while (syncSnapshotRecving(pVnode->sync)) {
vInfo("vgId:%d, snapshot is recving", pVnode->config.vgId); vInfo("vgId:%d, snapshot is recving", pVnode->config.vgId);
taosMsleep(300); taosMsleep(300);
} }
while (!syncSnapshotSending(pVnode->sync)) { while (syncSnapshotSending(pVnode->sync)) {
vInfo("vgId:%d, snapshot is sending", pVnode->config.vgId); vInfo("vgId:%d, snapshot is sending", pVnode->config.vgId);
taosMsleep(300); taosMsleep(300);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册