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) {
|
if (SFSNEXTROW_FILESET == state->state) {
|
||||||
_next_fileset:
|
_next_fileset:
|
||||||
if (--state->iFileSet < 0) {
|
clearLastFileSet(state);
|
||||||
clearLastFileSet(state);
|
|
||||||
|
|
||||||
|
if (--state->iFileSet < 0) {
|
||||||
*ppRow = NULL;
|
*ppRow = NULL;
|
||||||
return code;
|
return code;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2862,7 +2862,9 @@ static int32_t mergeLastCid(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SC
|
||||||
|
|
||||||
taosArraySet(pColArray, iCol, &lastCol);
|
taosArraySet(pColArray, iCol, &lastCol);
|
||||||
int32_t aColIndex = taosArraySearchIdx(aColArray, &lastCol.colVal.cid, compareInt16Val, TD_EQ);
|
int32_t aColIndex = taosArraySearchIdx(aColArray, &lastCol.colVal.cid, compareInt16Val, TD_EQ);
|
||||||
taosArrayRemove(aColArray, aColIndex);
|
if (aColIndex >= 0) {
|
||||||
|
taosArrayRemove(aColArray, aColIndex);
|
||||||
|
}
|
||||||
} else if (!COL_VAL_IS_VALUE(tColVal) && !COL_VAL_IS_VALUE(pColVal) && !setNoneCol) {
|
} else if (!COL_VAL_IS_VALUE(tColVal) && !COL_VAL_IS_VALUE(pColVal) && !setNoneCol) {
|
||||||
noneCol = iCol;
|
noneCol = iCol;
|
||||||
setNoneCol = true;
|
setNoneCol = true;
|
||||||
|
|
Loading…
Reference in New Issue