Merge branch 'yuncong' into 'branch-0.3.1-yuncong'

MS-197: Add build index api

See merge request megasearch/milvus!183

Former-commit-id: 1294a120719a8ca7ae12e2ce3b0c23b9484dbb45
This commit is contained in:
peng.xu 2019-07-10 11:51:30 +08:00
commit 5e45331894

View File

@ -438,7 +438,7 @@ Status DBImpl::BuildIndex(const std::string& table_id) {
while (has) {
ENGINE_LOG_DEBUG << "Non index files detected! Will build index " << times;
meta_ptr_->UpdateTableFilesToIndex(table_id);
StartBuildIndexTask(true);
/* StartBuildIndexTask(true); */
std::this_thread::sleep_for(std::chrono::milliseconds(std::min(10*1000, times*100)));
meta_ptr_->HasNonIndexFiles(table_id, has);
times++;