未验证 提交 4f8056a5 编写于 作者: P plum-lihui 提交者: GitHub

Merge pull request #1353 from sangshuduo/remove-unused-refCount-comparison-with-0

remove unused comparison with 0 as refCount >=0 always.
......@@ -249,11 +249,6 @@ static void taosClearCacheTrash(SCacheObj *pObj, bool force) {
SDataNode *pNode = pObj->pTrash;
while (pNode) {
if (pNode->refCount < 0) {
pError("key:%s %p in trash released more than referenced, removed", pNode->key, pNode);
pNode->refCount = 0;
}
if (pNode->next == pNode) {
pNode->next = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册