[TD-4081]<fix>: vnode not close if dropped

This commit is contained in:
Minglei Jin 2021-05-15 12:43:08 +08:00
parent 226f86c8bf
commit 4fd37ea2a1
1 changed files with 4 additions and 0 deletions

View File

@ -392,6 +392,10 @@ int32_t vnodeOpen(int32_t vgId) {
int32_t vnodeClose(int32_t vgId) {
SVnodeObj *pVnode = vnodeAcquire(vgId);
if (pVnode == NULL) return 0;
if (pVnode->dropped) {
vnodeRelease(pVnode);
return 0;
}
vDebug("vgId:%d, vnode will be closed, pVnode:%p", pVnode->vgId, pVnode);
vnodeRemoveFromHash(pVnode);