fix(tsdb/cache): update array reference to fix missing tables/groupby

This commit is contained in:
Minglei Jin 2024-05-17 14:55:15 +08:00
parent b19298f8e0
commit 7292d7a0ff
1 changed files with 7 additions and 4 deletions

View File

@ -376,7 +376,7 @@ static SLastCol *tsdbCacheDeserialize(char const *value, size_t size) {
return NULL; return NULL;
} }
SLastCol* pLastCol = taosMemoryCalloc(1, sizeof(SLastCol)); SLastCol *pLastCol = taosMemoryCalloc(1, sizeof(SLastCol));
if (NULL == pLastCol) { if (NULL == pLastCol) {
return NULL; return NULL;
} }
@ -1558,7 +1558,10 @@ static int32_t tsdbCacheLoadFromRaw(STsdb *pTsdb, tb_uid_t uid, SArray *pLastArr
taosArraySet(pLastArray, idxKey->idx, pLastCol); taosArraySet(pLastArray, idxKey->idx, pLastCol);
// taosArrayRemove(remainCols, i); // taosArrayRemove(remainCols, i);
if (!pTmpColArray) { if (/*!pTmpColArray*/ lastTmpIndexArray && !lastTmpColArray) {
continue;
}
if (/*!pTmpColArray*/ lastrowTmpIndexArray && lastrowTmpColArray) {
continue; continue;
} }