fix(tsdb/cache): update array reference to fix missing tables/groupby
This commit is contained in:
parent
b19298f8e0
commit
7292d7a0ff
|
@ -376,7 +376,7 @@ static SLastCol *tsdbCacheDeserialize(char const *value, size_t size) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
SLastCol* pLastCol = taosMemoryCalloc(1, sizeof(SLastCol));
|
||||
SLastCol *pLastCol = taosMemoryCalloc(1, sizeof(SLastCol));
|
||||
if (NULL == pLastCol) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1082,8 +1082,8 @@ static int32_t tsdbCacheUpdate(STsdb *pTsdb, tb_uid_t suid, tb_uid_t uid, SArray
|
|||
}
|
||||
|
||||
if (NULL == pLastCol || cmp_res < 0 || (cmp_res == 0 && !COL_VAL_IS_NONE(pColVal))) {
|
||||
char *value = NULL;
|
||||
size_t vlen = 0;
|
||||
char *value = NULL;
|
||||
size_t vlen = 0;
|
||||
SLastCol lastColTmp = {.rowKey = *pRowKey, .colVal = *pColVal};
|
||||
tsdbCacheSerialize(&lastColTmp, &value, &vlen);
|
||||
|
||||
|
@ -1558,7 +1558,10 @@ static int32_t tsdbCacheLoadFromRaw(STsdb *pTsdb, tb_uid_t uid, SArray *pLastArr
|
|||
taosArraySet(pLastArray, idxKey->idx, pLastCol);
|
||||
// taosArrayRemove(remainCols, i);
|
||||
|
||||
if (!pTmpColArray) {
|
||||
if (/*!pTmpColArray*/ lastTmpIndexArray && !lastTmpColArray) {
|
||||
continue;
|
||||
}
|
||||
if (/*!pTmpColArray*/ lastrowTmpIndexArray && lastrowTmpColArray) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue