From e360094f8adcd39653919019f7a07a2803b1fa99 Mon Sep 17 00:00:00 2001 From: kailixu Date: Sat, 3 Dec 2022 20:15:31 +0800 Subject: [PATCH] chore: code format --- source/common/src/tdatablock.c | 4 ++-- source/dnode/vnode/src/sma/smaTimeRange.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index eacb7b1188..519c2b0962 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -2012,9 +2012,9 @@ char* dumpBlockData(SSDataBlock* pDataBlock, const char* flag, char** pDataBuf) * */ #if 0 -int32_t buildSubmitReqFromDataBlock(SSubmitReq2** pReq, const SSDataBlock* pDataBlock, STSchema* pTSchema, int32_t vgId, +int32_t buildSubmitReqFromDataBlock(SSubmitReq** pReq, const SSDataBlock* pDataBlock, STSchema* pTSchema, int32_t vgId, tb_uid_t suid) { - int32_t bufSize = sizeof(SSubmitReq2); + int32_t bufSize = sizeof(SSubmitReq); int32_t sz = 1; for (int32_t i = 0; i < sz; ++i) { const SDataBlockInfo* pBlkInfo = &pDataBlock->info; diff --git a/source/dnode/vnode/src/sma/smaTimeRange.c b/source/dnode/vnode/src/sma/smaTimeRange.c index cf1e5d5d39..f82c6f6e1f 100644 --- a/source/dnode/vnode/src/sma/smaTimeRange.c +++ b/source/dnode/vnode/src/sma/smaTimeRange.c @@ -224,7 +224,7 @@ static int32_t tdProcessTSmaInsertImpl(SSma *pSma, int64_t indexUid, const char SRpcMsg submitReqMsg = { .msgType = TDMT_VND_SUBMIT, .pCont = pSubmitReq, - .contLen = ntohl(contLen), + .contLen = ntohl(pSubmitReq->length), }; if (tmsgPutToQueue(&pSma->pVnode->msgCb, WRITE_QUEUE, &submitReqMsg) < 0) { -- GitLab