refactor(sync): if already start, force close snapshot receiver

This commit is contained in:
Minghao Li 2022-11-30 20:32:43 +08:00
parent 76cc7a89fb
commit 7497eab926
1 changed files with 4 additions and 0 deletions

View File

@ -541,6 +541,10 @@ _START_RECEIVER:
taosMsleep(10);
}
if (snapshotReceiverIsStart(pReceiver)) {
snapshotReceiverForceStop(pReceiver);
}
snapshotReceiverStart(pReceiver, pMsg); // set start-time same with sender
}