Merge pull request #26893 from taosdata/fix/create_tb
fix(tsdb): remove invalid assert.
This commit is contained in:
commit
72b29054b2
|
@ -3293,23 +3293,10 @@ static int32_t doBuildDataBlock(STsdbReader* pReader) {
|
||||||
|
|
||||||
if ((!hasDataInSttBlock(pScanInfo)) || (asc && pBlockInfo->lastKey < keyInStt) ||
|
if ((!hasDataInSttBlock(pScanInfo)) || (asc && pBlockInfo->lastKey < keyInStt) ||
|
||||||
(!asc && pBlockInfo->firstKey > keyInStt)) {
|
(!asc && pBlockInfo->firstKey > keyInStt)) {
|
||||||
if (pScanInfo->cleanSttBlocks && hasDataInSttBlock(pScanInfo)) {
|
// the stt blocks may located in the gap of different data block, but the whole sttRange may overlap with the
|
||||||
if (asc) { // file block is located before the stt block
|
// data block, so the overlap check is invalid actually.
|
||||||
ASSERT(pScanInfo->sttRange.skey.ts > pBlockInfo->lastKey);
|
|
||||||
} else { // stt block is before the file block
|
|
||||||
ASSERT(pScanInfo->sttRange.ekey.ts < pBlockInfo->firstKey);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildCleanBlockFromDataFiles(pReader, pScanInfo, pBlockInfo, pBlockIter->index);
|
buildCleanBlockFromDataFiles(pReader, pScanInfo, pBlockInfo, pBlockIter->index);
|
||||||
} else { // clean stt block
|
} else { // clean stt block
|
||||||
if (asc) {
|
|
||||||
ASSERT(pScanInfo->sttRange.ekey.ts < pBlockInfo->firstKey);
|
|
||||||
} else {
|
|
||||||
ASSERT(pScanInfo->sttRange.skey.ts > pBlockInfo->lastKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
// return the stt file block
|
|
||||||
ASSERT(pReader->info.execMode == READER_EXEC_ROWS && pSttBlockReader->mergeTree.pIter == NULL);
|
ASSERT(pReader->info.execMode == READER_EXEC_ROWS && pSttBlockReader->mergeTree.pIter == NULL);
|
||||||
code = buildCleanBlockFromSttFiles(pReader, pScanInfo);
|
code = buildCleanBlockFromSttFiles(pReader, pScanInfo);
|
||||||
return code;
|
return code;
|
||||||
|
|
Loading…
Reference in New Issue