feat(db): disable call start build index task in build index

Former-commit-id: 4af68547957695eed042a2a276acf73fd9a7f724
This commit is contained in:
peng.xu 2019-07-10 11:49:33 +08:00
parent c6d38f0af2
commit 6b15e34ba6

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++;