fix(tsdb/cache): update nCols of merge tree to avoid assert failed

This commit is contained in:
Minglei Jin 2023-03-19 10:19:49 +08:00
parent 77d8013808
commit 3a5542bbbc
1 changed files with 3 additions and 0 deletions

View File

@ -658,6 +658,9 @@ static int32_t getNextRowFromFSLast(void *iter, TSDBROW **ppRow, bool *pIgnoreEa
bool hasVal = false;
state->row = tMergeTreeGetRow(&state->mergeTree);
*ppRow = &state->row;
if (nCols != state->pLoadInfo->numOfCols) {
state->pLoadInfo->numOfCols = nCols;
}
hasVal = tMergeTreeNext(&state->mergeTree);
if (TSDBROW_TS(&state->row) <= state->lastTs) {
*pIgnoreEarlierTs = true;