提交 ede0d491 编写于 作者: H Hongze Cheng

more refact

上级 fba58c76
...@@ -204,13 +204,14 @@ int32_t tsdbInsertData2(SMemTable *pMemTb, int64_t version, const SVSubmitBlk *p ...@@ -204,13 +204,14 @@ int32_t tsdbInsertData2(SMemTable *pMemTb, int64_t version, const SVSubmitBlk *p
// do insert data to SMemData // do insert data to SMemData
SMemSkipListNode *forwards[SL_MAX_LEVEL]; SMemSkipListNode *forwards[SL_MAX_LEVEL];
SMemSkipListNode *pNode; SMemSkipListNode *pNode;
int32_t iRow;
STsdbRow tRow = {.version = version}; STsdbRow tRow = {.version = version};
SEncoder ec = {0}; SEncoder ec = {0};
SDecoder dc = {0}; SDecoder dc = {0};
tDecoderInit(&dc, pSubmitBlk->pData, pSubmitBlk->nData); tDecoderInit(&dc, pSubmitBlk->pData, pSubmitBlk->nData);
tsdbMemSkipListCursorInit(pMemTb->pSlc, &pMemData->sl); tsdbMemSkipListCursorInit(pMemTb->pSlc, &pMemData->sl);
for (;;) { for (iRow = 0;; iRow++) {
if (tDecodeIsEnd(&dc)) break; if (tDecodeIsEnd(&dc)) break;
// decode row // decode row
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册