From 97616d2ad1c664f95f549bbc61d51575dbe8dd96 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 31 Jul 2020 11:50:13 +0800 Subject: [PATCH] [td-225] update the hash func --- src/util/src/tcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index 2432e97552..4e2c41d1bc 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -436,8 +436,8 @@ void taosCacheRelease(SCacheObj *pCacheObj, void **data, bool _remove) { taosRemoveFromTrashCan(pCacheObj, pNode->pTNodeHeader); } } else { - int32_t success = taosHashRemove(pCacheObj->pHashTable, pNode->key, pNode->keySize); - if (success) { + int32_t ret = taosHashRemove(pCacheObj->pHashTable, pNode->key, pNode->keySize); + if (ret == 0) { if (ref > 0) { assert(pNode->pTNodeHeader == NULL); -- GitLab