code optimization
This commit is contained in:
parent
eebc5d4000
commit
c06123053f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue