提交 45b93280 编写于 作者: L Liu Jicong

refactor: support submitreq2

上级 c5dc7e82
......@@ -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;
......
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册