fix(sync): fix asan error, TD-20437

This commit is contained in:
Minghao Li 2022-11-16 10:54:06 +08:00
parent 475919dd77
commit 023f61ccf5
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,9 @@ int32_t snapshotSend(SSyncSnapshotSender *pSender) {
// pMsg->privateTerm = pSender->privateTerm;
if (pSender->pCurrentBlock != NULL) {
memcpy(pMsg->data, pSender->pCurrentBlock, pSender->blockLen);
}
// send msg
syncNodeSendMsgById(&pMsg->destId, pSender->pSyncNode, &rpcMsg);