sq8h loading problem (#4060)

Signed-off-by: cqy <yaya645@126.com>
pull/4083/head
cqy123456 2020-10-22 17:11:46 +08:00 committed by GitHub
parent 8e0f0a3437
commit 0b020b8255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -472,16 +472,6 @@ ExecutionEngineImpl::Load(bool to_cache) {
LOG_ENGINE_ERROR_ << msg;
return Status(DB_ERROR, msg);
} else {
bool gpu_enable = false;
#ifdef MILVUS_GPU_VERSION
server::Config& config = server::Config::GetInstance();
STATUS_CHECK(config.GetGpuResourceConfigEnable(gpu_enable));
#endif
if (!gpu_enable && index_->index_mode() == knowhere::IndexMode::MODE_GPU) {
std::string err_msg = "Index with type " + index_->index_type() + " must be used in GPU mode";
LOG_ENGINE_ERROR_ << err_msg;
return Status(DB_ERROR, err_msg);
}
segment::DeletedDocsPtr deleted_docs_ptr;
auto status = segment_reader_ptr->LoadDeletedDocs(deleted_docs_ptr);
if (!status.ok()) {