tsdb/cache: pLastIter null pointer check
This commit is contained in:
parent
5f25d70fc2
commit
968cfd9e65
|
@ -2053,7 +2053,9 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state->pLastRow) {
|
if (!state->pLastRow) {
|
||||||
lastIterClose(&state->pLastIter);
|
if (state->pLastIter) {
|
||||||
|
lastIterClose(&state->pLastIter);
|
||||||
|
}
|
||||||
|
|
||||||
clearLastFileSet(state);
|
clearLastFileSet(state);
|
||||||
state->state = SFSNEXTROW_FILESET;
|
state->state = SFSNEXTROW_FILESET;
|
||||||
|
@ -2154,7 +2156,9 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state->pLastRow) {
|
if (!state->pLastRow) {
|
||||||
lastIterClose(&state->pLastIter);
|
if (state->pLastIter) {
|
||||||
|
lastIterClose(&state->pLastIter);
|
||||||
|
}
|
||||||
|
|
||||||
*ppRow = &state->row;
|
*ppRow = &state->row;
|
||||||
--state->iRow;
|
--state->iRow;
|
||||||
|
|
Loading…
Reference in New Issue