fix/TD-32766-check-ref-before-free-first-check

This commit is contained in:
dmchen 2024-10-30 09:01:50 +00:00
parent 0e01b1a9c0
commit eaba7dfb5f
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static void vmFreeVnodeObj(SVnodeObj **ppVnode) {
SVnodeObj *pVnode = *ppVnode;
int32_t refCount = 1;
int32_t refCount = atomic_load_32(&pVnode->refCount);
while (refCount > 0) {
dWarn("vgId:%d, vnode is refenced, retry to free in 200ms, vnode:%p, ref:%d", pVnode->vgId, pVnode, refCount);
taosMsleep(200);