Merge pull request #4863 from taosdata/feature/sim
[TD-2605]<fix>: taosd may crash while reset tsdb
This commit is contained in:
commit
1e51e2135c
|
@ -420,9 +420,6 @@ void vnodeCleanUp(SVnodeObj *pVnode) {
|
||||||
|
|
||||||
vnodeSetClosingStatus(pVnode);
|
vnodeSetClosingStatus(pVnode);
|
||||||
|
|
||||||
// release local resources only after cutting off outside connections
|
|
||||||
qQueryMgmtNotifyClosed(pVnode->qMgmt);
|
|
||||||
|
|
||||||
// stop replication module
|
// stop replication module
|
||||||
if (pVnode->sync > 0) {
|
if (pVnode->sync > 0) {
|
||||||
int64_t sync = pVnode->sync;
|
int64_t sync = pVnode->sync;
|
||||||
|
|
|
@ -75,6 +75,9 @@ bool vnodeSetClosingStatus(SVnodeObj* pVnode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// release local resources only after cutting off outside connections
|
||||||
|
qQueryMgmtNotifyClosed(pVnode->qMgmt);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,6 +119,9 @@ bool vnodeSetResetStatus(SVnodeObj* pVnode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// release local resources only after cutting off outside connections
|
||||||
|
qQueryMgmtNotifyClosed(pVnode->qMgmt);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue