fix(tsdb/cache): clear fs state before next open
This commit is contained in:
parent
da2653bef2
commit
aa410a6deb
|
@ -1990,9 +1990,9 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlie
|
|||
|
||||
if (SFSNEXTROW_FILESET == state->state) {
|
||||
_next_fileset:
|
||||
if (--state->iFileSet < 0) {
|
||||
clearLastFileSet(state);
|
||||
|
||||
if (--state->iFileSet < 0) {
|
||||
*ppRow = NULL;
|
||||
return code;
|
||||
} else {
|
||||
|
@ -2862,7 +2862,9 @@ static int32_t mergeLastCid(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SC
|
|||
|
||||
taosArraySet(pColArray, iCol, &lastCol);
|
||||
int32_t aColIndex = taosArraySearchIdx(aColArray, &lastCol.colVal.cid, compareInt16Val, TD_EQ);
|
||||
if (aColIndex >= 0) {
|
||||
taosArrayRemove(aColArray, aColIndex);
|
||||
}
|
||||
} else if (!COL_VAL_IS_VALUE(tColVal) && !COL_VAL_IS_VALUE(pColVal) && !setNoneCol) {
|
||||
noneCol = iCol;
|
||||
setNoneCol = true;
|
||||
|
|
Loading…
Reference in New Issue