[TD-161]
This commit is contained in:
parent
a478499c2d
commit
55e68f2fc8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue