refactor: support submitreq2

This commit is contained in:
Liu Jicong 2022-12-07 17:22:38 +08:00
parent c5dc7e8227
commit 45b93280c9
2 changed files with 5 additions and 7 deletions

View File

@ -221,10 +221,10 @@ typedef struct SSnapContext {
} SSnapContext;
typedef struct STqReader {
const SSubmitReq *pMsg;
// SSubmitBlk *pBlock;
// SSubmitMsgIter msgIter;
// SSubmitBlkIter blkIter;
// const SSubmitReq *pMsg;
// SSubmitBlk *pBlock;
// SSubmitMsgIter msgIter;
// SSubmitBlkIter blkIter;
int64_t ver;
SPackedSubmit msg2;

View File

@ -673,10 +673,8 @@ int32_t tqProcessPollReq(STQ* pTq, SRpcMsg* pMsg) {
req.epoch, TD_VID(pTq->pVnode), fetchVer, pHead->msgType);
if (pHead->msgType == TDMT_VND_SUBMIT) {
SSubmitReq* pCont = (SSubmitReq*)&pHead->body;
SPackedSubmit submit = {
.msgStr = pCont,
.msgStr = pHead->body,
.msgLen = pHead->bodyLen,
.ver = pHead->version,
};