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:
commit
b3e5b5bd24
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue