提交 e62a7b36 编写于 作者: J jinhai

Merge branch 'branch-0.5.0' into 'branch-0.5.0'

MS-611 Add resources validity check in ResourceMgr

See merge request megasearch/milvus!662

Former-commit-id: bd4b9327b9fbd101e6811f6002f4dae4ff105f05
......@@ -105,6 +105,8 @@ void
ResourceMgr::Clear() {
std::lock_guard<std::mutex> lck(resources_mutex_);
disk_resources_.clear();
cpu_resources_.clear();
gpu_resources_.clear();
resources_.clear();
}
......
......@@ -123,6 +123,7 @@ DBTest::TearDown() {
ms::scheduler::JobMgrInst::GetInstance()->Stop();
ms::scheduler::SchedInst::GetInstance()->Stop();
ms::scheduler::ResMgrInst::GetInstance()->Stop();
ms::scheduler::ResMgrInst::GetInstance()->Clear();
BaseTest::TearDown();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册