fix: cache update for last key

This commit is contained in:
Shungang Li 2024-05-17 15:33:28 +08:00
parent 5760ac25e2
commit bf40585f6c
1 changed files with 40 additions and 42 deletions

View File

@ -1075,7 +1075,6 @@ static int32_t tsdbCacheUpdate(STsdb *pTsdb, tb_uid_t suid, tb_uid_t uid, SArray
continue;
}
if (IS_LAST_ROW_KEY(idxKey->key)) {
int32_t cmp_res = 1;
if (pLastCol) {
cmp_res = tRowKeyCompare(&pLastCol->rowKey, pRowKey);
@ -1120,7 +1119,6 @@ static int32_t tsdbCacheUpdate(STsdb *pTsdb, tb_uid_t suid, tb_uid_t uid, SArray
taosMemoryFree(value);
}
}
taosMemoryFreeClear(PToFree);
rocksdb_free(values_list[i]);