Skip to content

Commit

Permalink
Fix create index log (zilliztech#504)
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <chao.gao@zilliz.com>
  • Loading branch information
chasingegg authored Apr 16, 2024
1 parent c62be46 commit cab380e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ IndexFactory::Create(const std::string& name, const int32_t& version, const Obje
auto key = GetIndexKey<DataType>(name);
if (func_mapping_.find(key) == func_mapping_.end()) {
LOG_KNOWHERE_ERROR_ << "failed to find index " << key << " in factory";
}
if (func_mapping_.find(key) == func_mapping_.end()) {
LOG_KNOWHERE_INFO_ << "use key " << key << " to create knowhere index " << name << " with version " << version;
return expected<Index<IndexNode>>::Err(Status::invalid_index_error, "index not supported");
}
LOG_KNOWHERE_INFO_ << "use key " << key << " to create knowhere index " << name << " with version " << version;
auto fun_map_v = (FunMapValue<Index<IndexNode>>*)(func_mapping_[key].get());

#ifdef KNOWHERE_WITH_RAFT
Expand Down

0 comments on commit cab380e

Please sign in to comment.