Merge pull request #14698 from taosdata/fix/tsdb-cache-last-delete

fix: release handle to keep refs correct
This commit is contained in:
Minglei Jin 2022-07-08 20:12:13 +08:00 committed by GitHub
commit 236c1d0202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1256,6 +1256,8 @@ int32_t tsdbCacheDelete(SLRUCache *pCache, tb_uid_t uid, TSKEY eKey) {
if (invalidate) {
taosLRUCacheRelease(pCache, h, true);
} else {
taosLRUCacheRelease(pCache, h, false);
}
// void taosLRUCacheErase(SLRUCache * cache, const void *key, size_t keyLen);
}