提交 c0612305 编写于 作者: C Cary Xu

code optimization

上级 eebc5d40
......@@ -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;
......@@ -386,7 +386,7 @@ static int walSMemRowCheck(SWalHead *pHead) {
memcpy(pHead, pWalHead, sizeof(SWalHead) + pWalHead->len);
tfree(pWalHead);
}
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册