Skip to content

Commit

Permalink
Merge pull request #22247 from taosdata/fix/TD-25436
Browse files Browse the repository at this point in the history
fix(tsdb/cache): check stt data with empty brin index
  • Loading branch information
gccgdb1234 committed Jul 31, 2023
2 parents e5f3835 + 135beeb commit c7fa5ed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions source/dnode/vnode/src/tsdb/tsdbCache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,10 +1667,6 @@ static int32_t loadTombFromBlk(const TTombBlkArray *pTombBlkArray, SCacheRowsRea
}

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};
taosArrayPush(pInfo->pTombData, &delData);
}
Expand Down Expand Up @@ -1912,15 +1908,14 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie

int indexSize = TARRAY_SIZE(state->pIndexList);
if (indexSize <= 0) {
clearLastFileSet(state);
state->state = SFSNEXTROW_FILESET;
goto _next_fileset;
goto _check_stt_data;
}

state->state = SFSNEXTROW_INDEXLIST;
state->iBrinIndex = indexSize;
}

_check_stt_data:
if (state->pFileSet != state->pr->pCurFileSet) {
state->pr->pCurFileSet = state->pFileSet;
}
Expand Down

0 comments on commit c7fa5ed

Please sign in to comment.