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

finish refactor tsdb read code

上级 1747e8ff
...@@ -332,9 +332,11 @@ typedef struct { ...@@ -332,9 +332,11 @@ typedef struct {
TSKEY maxKey; TSKEY maxKey;
SBlockIdx* pBlockIdx; SBlockIdx* pBlockIdx;
int nBlockIdx; int nBlockIdx;
int cBlockIdx;
SBlockIdx* pCurBlockIdx; SBlockIdx* pCurBlockIdx;
STable* pTable; STable* pTable;
SBlockInfo* pBlockInfo; SBlockInfo* pBlockInfo;
SBlockData* pBlockData;
SDataCols* pDataCols[2]; SDataCols* pDataCols[2];
void* pBuf; void* pBuf;
void* pCBuf; void* pCBuf;
...@@ -592,6 +594,9 @@ typedef struct { ...@@ -592,6 +594,9 @@ typedef struct {
void* pBuffer; void* pBuffer;
SList* pModLog; SList* pModLog;
} SCommitHandle; } SCommitHandle;
void tsdbResetFGroupFd(SFileGroup* pFGroup);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
此差异已折叠。
...@@ -105,3 +105,9 @@ void *tsdbDecodeBlockIdx(void *buf, SBlockIdx *pBlockIdx) { ...@@ -105,3 +105,9 @@ void *tsdbDecodeBlockIdx(void *buf, SBlockIdx *pBlockIdx) {
return buf; 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.
先完成此消息的编辑!
想要评论请 注册