This commit is contained in:
lihui 2020-05-13 13:38:31 +08:00
parent a478499c2d
commit 55e68f2fc8
1 changed files with 1 additions and 1 deletions

View File

@ -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
}