[td-225] refactor codes.

This commit is contained in:
Haojun Liao 2020-07-30 17:18:15 +08:00
parent fa560fd3a7
commit 3b80eb7255
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ void *taosCachePut(SCacheObj *pCacheObj, const void *key, size_t keyLen, const v
return NULL;
}
__cache_wr_lock(pCacheObj);
__cache_rd_lock(pCacheObj);
SCacheDataNode **pt = (SCacheDataNode **)taosHashGet(pCacheObj->pHashTable, key, keyLen);
SCacheDataNode * pOld = (pt != NULL) ? (*pt) : NULL;