提交 e724bc15 编写于 作者: H Haojun Liao

refactor: do some internal refactor.

上级 ae8a9d25
......@@ -2567,8 +2567,8 @@ static bool initLastBlockReader(SLastBlockReader* pLBlockReader, STableBlockScan
}
static int64_t getCurrentKeyInLastBlock(SLastBlockReader* pLastBlockReader) {
TSDBROW row = tMergeTreeGetRow(&pLastBlockReader->mergeTree);
return TSDBROW_TS(&row);
TSDBROW* pRow = &tMergeTreeGetRow((&(pLastBlockReader)->mergeTree));
return pRow->pBlockData->aTSKEY[pRow->iRow];
}
static bool hasDataInLastBlock(SLastBlockReader* pLastBlockReader) { return pLastBlockReader->mergeTree.pIter != NULL; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册