From 6682813f401cbdf9cf1e9d49392be6873baaed95 Mon Sep 17 00:00:00 2001 From: slguan Date: Wed, 1 Apr 2020 18:46:42 +0800 Subject: [PATCH] [TD-17] fix deadlock in cleanup vnodes --- src/dnode/src/dnodeMgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dnode/src/dnodeMgmt.c b/src/dnode/src/dnodeMgmt.c index ce18fdb498..70fde55f89 100644 --- a/src/dnode/src/dnodeMgmt.c +++ b/src/dnode/src/dnodeMgmt.c @@ -284,10 +284,10 @@ static void dnodeDoCleanupVnode(SVnodeObj *pVnode, ECloseTsdbFlag closeFlag) { if (pVnode->tsdb) { if (closeFlag == DROP_TSDB) { tsdbDropRepo(pVnode->tsdb); + taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId); } else if (closeFlag == CLOSE_TSDB) { tsdbCloseRepo(pVnode->tsdb); } - taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId); pVnode->tsdb = NULL; } } -- GitLab