提交 401d046b 编写于 作者: S slguan

Fix the issue #130, reference count may have a problem

上级 6788a422
......@@ -522,7 +522,7 @@ void *taosGetDataFromCache(void *handle, char *key) {
pthread_rwlock_rdlock(&pObj->lock);
SDataNode *ptNode = taosGetNodeFromHashTable(handle, key, keyLen);
if (ptNode != NULL) {
ptNode->refCount += 1;
__sync_add_and_fetch_32(&ptNode->refCount, 1);
}
pthread_rwlock_unlock(&pObj->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册