提交 af5c5b3b 编写于 作者: G groot

#606 no log generated during building index with CPU

上级 e1ae8e9f
......@@ -34,6 +34,7 @@ Please mark all change in change log and use the ticket from JIRA.
- \#543 - client raise exception in shards when search results is empty
- \#545 - Avoid dead circle of build index thread when error occurs
- \#561 - Milvus server should report exception/error message or terminate on mysql metadata backend error
- \#606 - No log generated during building index with CPU
## Feature
- \#12 - Pure CPU version for Milvus
......
......@@ -836,13 +836,13 @@ DBImpl::BackgroundBuildIndex() {
if (!to_index_files.empty()) {
// step 2: put build index task to scheduler
std::map<scheduler::BuildIndexJobPtr, scheduler::TableFileSchemaPtr> job2file_map;
std::vector<std::pair<scheduler::BuildIndexJobPtr, scheduler::TableFileSchemaPtr>> job2file_map;
for (auto& file : to_index_files) {
scheduler::BuildIndexJobPtr job = std::make_shared<scheduler::BuildIndexJob>(meta_ptr_, options_);
scheduler::TableFileSchemaPtr file_ptr = std::make_shared<meta::TableFileSchema>(file);
job->AddToIndexFiles(file_ptr);
scheduler::JobMgrInst::GetInstance()->Put(job);
job2file_map.insert(std::make_pair(job, file_ptr));
job2file_map.push_back(std::make_pair(job, file_ptr));
}
for (auto iter = job2file_map.begin(); iter != job2file_map.end(); ++iter) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册