Merge pull request #610 from yhmo/0.6.0

#606  No log generated during building index with CPU
pull/613/head
Jin Hai 2019-11-29 15:14:21 +08:00 committed by GitHub
commit 7bf5cade6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -38,6 +38,7 @@ Please mark all change in change log and use the ticket from JIRA.
- \#561 - Milvus server should report exception/error message or terminate on mysql metadata backend error
- \#599 - Build index log is incorrect
- \#602 - Optimizer specify wrong gpu_id
- \#606 - No log generated during building index with CPU
## Feature
- \#12 - Pure CPU version for Milvus

View File

@ -842,13 +842,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) {