fix/TD-32622-add-closed-hash-fix-case

This commit is contained in:
dmchen 2024-10-25 03:50:16 +00:00
parent 9f69124708
commit 9f111b60ab
1 changed files with 7 additions and 0 deletions

View File

@ -586,6 +586,13 @@ static void vmCloseVnodes(SVnodeMgmt *pMgmt) {
pMgmt->hash = NULL;
}
void *pIter = taosHashIterate(pMgmt->closedHash, NULL);
while (pIter) {
SVnodeObj **ppVnode = pIter;
vmFreeVnodeObj(ppVnode);
pIter = taosHashIterate(pMgmt->closedHash, pIter);
}
if (pMgmt->closedHash != NULL) {
taosHashCleanup(pMgmt->closedHash);
pMgmt->closedHash = NULL;