提交 f4f7dfa6 编写于 作者: J Jeff Tao

remove the status checking on cleanup

上级 58607175
...@@ -187,6 +187,7 @@ void vnodeRelease(void *pVnodeRaw) { ...@@ -187,6 +187,7 @@ void vnodeRelease(void *pVnodeRaw) {
if (tsOpennedVnodes <= 0) { if (tsOpennedVnodes <= 0) {
taosCleanUpIntHash(tsDnodeVnodesHash); taosCleanUpIntHash(tsDnodeVnodesHash);
vnodeModuleInit = PTHREAD_ONCE_INIT; vnodeModuleInit = PTHREAD_ONCE_INIT;
tsDnodeVnodesHash = NULL;
} }
} }
...@@ -240,10 +241,7 @@ static void vnodeBuildVloadMsg(char *pNode, void * param) { ...@@ -240,10 +241,7 @@ static void vnodeBuildVloadMsg(char *pNode, void * param) {
} }
static void vnodeCleanUp(SVnodeObj *pVnode) { static void vnodeCleanUp(SVnodeObj *pVnode) {
if (pVnode->status == VN_STATUS_DELETING) {
// fix deadlock occured while close system
taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId); taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId);
}
//syncStop(pVnode->sync); //syncStop(pVnode->sync);
tsdbCloseRepo(pVnode->tsdb); tsdbCloseRepo(pVnode->tsdb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册