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

This commit is contained in:
dmchen 2024-10-30 09:00:42 +00:00
parent 935d118f42
commit fbb8585593
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);