Merge pull request #2000 from taosdata/feature/2.0tsdb
fix general/insert/insert_drop.sim error
This commit is contained in:
commit
b36712ce3c
|
@ -394,9 +394,10 @@ static int32_t getFileCompInfo(STsdbQueryHandle* pQueryHandle, int32_t* numOfBlo
|
||||||
STableCheckInfo* pCheckInfo = taosArrayGet(pQueryHandle->pTableCheckInfo, i);
|
STableCheckInfo* pCheckInfo = taosArrayGet(pQueryHandle->pTableCheckInfo, i);
|
||||||
|
|
||||||
SCompIdx* compIndex = &pQueryHandle->rhelper.pCompIdx[pCheckInfo->tableId.tid];
|
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;
|
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 {
|
} else {
|
||||||
if (pCheckInfo->compSize < compIndex->len) {
|
if (pCheckInfo->compSize < compIndex->len) {
|
||||||
assert(compIndex->len > 0);
|
assert(compIndex->len > 0);
|
||||||
|
|
Loading…
Reference in New Issue