fix: cannot close vnode while transferring snapshot
This commit is contained in:
parent
5ecbcb1054
commit
3850b58a3d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue