code optimization

This commit is contained in:
Cary Xu 2021-08-13 18:17:29 +08:00
parent eebc5d4000
commit c06123053f
1 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ static int walSMemRowCheck(SWalHead *pHead) {
if (pWalHead == NULL) {
return TSDB_CODE_WAL_OUT_OF_MEMORY;
}
// len should be updated
memcpy(pWalHead, pHead, sizeof(SWalHead) + sizeof(SSubmitMsg));
SSubmitMsg *pDestMsg = (SSubmitMsg *)pWalHead->cont;