Merge pull request #25842 from taosdata/last-fix-3.0

fix: cache update for last key
This commit is contained in:
wade zhang 2024-05-17 19:10:17 +08:00 committed by GitHub
commit 589e82233f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]);