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

fix bug

上级 e6aac222
...@@ -107,6 +107,7 @@ int tsdbOpenFileH(STsdbRepo *pRepo) { ...@@ -107,6 +107,7 @@ int tsdbOpenFileH(STsdbRepo *pRepo) {
while (true) { while (true) {
int nfid = 0; int nfid = 0;
if (iter >= taosArrayGetSize(pfArray)) break;
TFILE *npf = taosArrayGet(pfArray, iter); TFILE *npf = taosArrayGet(pfArray, iter);
tfsbasename(npf, bname); tfsbasename(npf, bname);
tsdbParseFname(bname, &vid, &nfid, suffix); tsdbParseFname(bname, &vid, &nfid, suffix);
......
...@@ -254,9 +254,9 @@ int tsdbSyncCommit(TSDB_REPO_T *repo) { ...@@ -254,9 +254,9 @@ int tsdbSyncCommit(TSDB_REPO_T *repo) {
*/ */
int tsdbLoadDataFromCache(STable *pTable, SSkipListIterator *pIter, TSKEY maxKey, int maxRowsToRead, SDataCols *pCols, int tsdbLoadDataFromCache(STable *pTable, SSkipListIterator *pIter, TSKEY maxKey, int maxRowsToRead, SDataCols *pCols,
TKEY *filterKeys, int nFilterKeys, bool keepDup, SMergeInfo *pMergeInfo) { TKEY *filterKeys, int nFilterKeys, bool keepDup, SMergeInfo *pMergeInfo) {
ASSERT(maxRowsToRead > 0 && nFilterKeys >= 0 && pMergeInfo != NULL); ASSERT(maxRowsToRead > 0 && nFilterKeys >= 0);
if (pIter == NULL) return 0; if (pIter == NULL) return 0;
STSchema *pSchema = NULL; STSchema * pSchema = NULL;
TSKEY rowKey = 0; TSKEY rowKey = 0;
TSKEY fKey = 0; TSKEY fKey = 0;
bool isRowDel = false; bool isRowDel = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册