Merge pull request #22217 from taosdata/fix/TD-25386

fix(tsdb/cache): move to stt next row if data file exausted
This commit is contained in:
wade zhang 2023-07-28 08:56:29 +08:00 committed by GitHub
commit b3e5b5bd24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {