提交 3da56152 编写于 作者: S Shengliang Guan

[TD-4323]<fix>: the deleted vnode does not need to commit, so as to speed up...

[TD-4323]<fix>:  the deleted vnode does not need to commit, so as to speed up the deletion and avoid crash while balance
上级 09f3c724
......@@ -419,7 +419,11 @@ void vnodeDestroy(SVnodeObj *pVnode) {
}
if (pVnode->tsdb) {
code = tsdbCloseRepo(pVnode->tsdb, 1);
// the deleted vnode does not need to commit, so as to speed up the deletion
int toCommit = 1;
if (pVnode->dropped) toCommit = 0;
code = tsdbCloseRepo(pVnode->tsdb, toCommit);
pVnode->tsdb = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册