From 6f91f323cb6f5f8e703d3bbb48355c6c9128aa6b Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 22 May 2020 08:35:40 +0000 Subject: [PATCH] fix general/insert/insert_drop.sim error --- src/tsdb/src/tsdbRead.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index d3d890f361..ded736690d 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -394,9 +394,10 @@ static int32_t getFileCompInfo(STsdbQueryHandle* pQueryHandle, int32_t* numOfBlo STableCheckInfo* pCheckInfo = taosArrayGet(pQueryHandle->pTableCheckInfo, i); SCompIdx* compIndex = &pQueryHandle->rhelper.pCompIdx[pCheckInfo->tableId.tid]; - if (compIndex->len == 0 || compIndex->numOfBlocks == 0) { // no data block in this file, try next file + if (compIndex->len == 0 || compIndex->numOfBlocks == 0 || + compIndex->uid != pCheckInfo->tableId.uid) { // no data block in this file, try next file pCheckInfo->numOfBlocks = 0; - continue;//no data blocks in the file belongs to pCheckInfo->pTable + continue; // no data blocks in the file belongs to pCheckInfo->pTable } else { if (pCheckInfo->compSize < compIndex->len) { assert(compIndex->len > 0); -- GitLab