fix: cannot close mnode while transferring snapshot

This commit is contained in:
Shengliang Guan 2022-11-30 11:07:14 +08:00
parent 82bc543ed7
commit 5ecbcb1054
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}