Merge pull request #18587 from taosdata/fix/TD-20857

refactor(sync): if already start, force close snapshot receiver
This commit is contained in:
Shengliang Guan 2022-11-30 21:50:29 +08:00 committed by GitHub
commit c0ecd4cebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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