[td-225] update the hash func

This commit is contained in:
Haojun Liao 2020-07-31 11:50:13 +08:00
parent ce4a2802cd
commit 97616d2ad1
1 changed files with 2 additions and 2 deletions

View File

@ -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);