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

finish refactor tsdb read code

上级 1747e8ff
......@@ -332,9 +332,11 @@ typedef struct {
TSKEY maxKey;
SBlockIdx* pBlockIdx;
int nBlockIdx;
int cBlockIdx;
SBlockIdx* pCurBlockIdx;
STable* pTable;
SBlockInfo* pBlockInfo;
SBlockData* pBlockData;
SDataCols* pDataCols[2];
void* pBuf;
void* pCBuf;
......@@ -592,6 +594,9 @@ typedef struct {
void* pBuffer;
SList* pModLog;
} SCommitHandle;
void tsdbResetFGroupFd(SFileGroup* pFGroup);
#ifdef __cplusplus
}
#endif
......
此差异已折叠。
......@@ -104,4 +104,10 @@ void *tsdbDecodeBlockIdx(void *buf, SBlockIdx *pBlockIdx) {
pBlockIdx->maxKey = (TSKEY)maxKey;
return buf;
}
void tsdbResetFGroupFd(SFileGroup *pFGroup) {
for (int type = 0; type < TSDB_FILE_TYPE_MAX; type++) {
pFGroup->files[type].fd = -1;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册