提交 5ecbcb10 编写于 作者: S Shengliang Guan

fix: cannot close mnode while transferring snapshot

上级 82bc543e
......@@ -492,11 +492,11 @@ void mndPreClose(SMnode *pMnode) {
syncLeaderTransfer(pMnode->syncMgmt.sync);
syncPreStop(pMnode->syncMgmt.sync);
while (!syncSnapshotRecving(pMnode->syncMgmt.sync)) {
while (syncSnapshotRecving(pMnode->syncMgmt.sync)) {
mInfo("vgId:1, snapshot is recving");
taosMsleep(300);
}
while (!syncSnapshotSending(pMnode->syncMgmt.sync)) {
while (syncSnapshotSending(pMnode->syncMgmt.sync)) {
mInfo("vgId:1, snapshot is sending");
taosMsleep(300);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册