fix(tsdb/cache): move to stt next row if data file exausted

This commit is contained in:
Minglei Jin 2023-07-27 17:19:42 +08:00
parent a72c11c8de
commit cc9b9bd0b9
1 changed files with 8 additions and 1 deletions

View File

@ -2074,7 +2074,14 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie
if (SFSNEXTROW_INDEXLIST == state->state) { if (SFSNEXTROW_INDEXLIST == state->state) {
SBrinBlk *pBrinBlk = NULL; SBrinBlk *pBrinBlk = NULL;
_next_brinindex: _next_brinindex:
if (--state->iBrinIndex < 0) { // no index left, goto next fileset if (--state->iBrinIndex < 0) {
if (state->pLastRow) {
state->state = SFSNEXTROW_NEXTSTTROW;
*ppRow = state->pLastRow;
state->pLastRow = NULL;
return code;
}
clearLastFileSet(state); clearLastFileSet(state);
goto _next_fileset; goto _next_fileset;
} else { } else {