mirror of https://github.com/milvus-io/milvus.git
parent
8e0f0a3437
commit
0b020b8255
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue