fix(tsdb/cache): check stt data with empty brin index
This commit is contained in:
parent
3c18741469
commit
135beebc0a
|
@ -1667,10 +1667,6 @@ static int32_t loadTombFromBlk(const TTombBlkArray *pTombBlkArray, SCacheRowsRea
|
||||||
}
|
}
|
||||||
|
|
||||||
if (record.version <= pReader->info.verRange.maxVer) {
|
if (record.version <= pReader->info.verRange.maxVer) {
|
||||||
/*
|
|
||||||
tsdbError("tomb xx load/cache: vgId:%d fid:%d commit %" PRId64 "~%" PRId64 "~%" PRId64 " tomb records",
|
|
||||||
TD_VID(pReader->pTsdb->pVnode), pReader->pCurFileSet->fid, record.skey, record.ekey, uid);
|
|
||||||
*/
|
|
||||||
SDelData delData = {.version = record.version, .sKey = record.skey, .eKey = record.ekey};
|
SDelData delData = {.version = record.version, .sKey = record.skey, .eKey = record.ekey};
|
||||||
taosArrayPush(pInfo->pTombData, &delData);
|
taosArrayPush(pInfo->pTombData, &delData);
|
||||||
}
|
}
|
||||||
|
@ -1912,15 +1908,14 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie
|
||||||
|
|
||||||
int indexSize = TARRAY_SIZE(state->pIndexList);
|
int indexSize = TARRAY_SIZE(state->pIndexList);
|
||||||
if (indexSize <= 0) {
|
if (indexSize <= 0) {
|
||||||
clearLastFileSet(state);
|
goto _check_stt_data;
|
||||||
state->state = SFSNEXTROW_FILESET;
|
|
||||||
goto _next_fileset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
state->state = SFSNEXTROW_INDEXLIST;
|
state->state = SFSNEXTROW_INDEXLIST;
|
||||||
state->iBrinIndex = indexSize;
|
state->iBrinIndex = indexSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_check_stt_data:
|
||||||
if (state->pFileSet != state->pr->pCurFileSet) {
|
if (state->pFileSet != state->pr->pCurFileSet) {
|
||||||
state->pr->pCurFileSet = state->pFileSet;
|
state->pr->pCurFileSet = state->pFileSet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue