From 55e68f2fc8e6bf720e37f7e221bcbde0362ff4a7 Mon Sep 17 00:00:00 2001 From: lihui Date: Wed, 13 May 2020 13:38:31 +0800 Subject: [PATCH] [TD-161] --- src/vnode/src/vnodeMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index 6e7976ff44..77afb7bf29 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -265,7 +265,7 @@ void vnodeRelease(void *pVnodeRaw) { int32_t vgId = pVnode->vgId; int32_t refCount = atomic_sub_fetch_32(&pVnode->refCount, 1); - if (ref < 0) { + if (refCount < 0) { vTrace("vgId:%d, other thread is releasing vnode, refCount:%d", vgId, refCount); return; // avoid two threads dec ref count } -- GitLab