Skip to content

Commit

Permalink
milvus-io#1719 Remove unused log (milvus-io#1720)
Browse files Browse the repository at this point in the history
Signed-off-by: jinhai <[email protected]>
  • Loading branch information
JinHai-CN authored Mar 21, 2020
1 parent 3c3617f commit 9443af3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Please mark all change in change log and use the issue from GitHub
- \#1653 IndexFlat (SSE) and IndexBinaryFlat performance improvement for small NQ
- \#1678 Remove CUSTOMIZATION macro
- \#1698 Upgrade mishards to v0.7.0
- \#1719 Improve Milvus log

## Task

Expand Down
3 changes: 0 additions & 3 deletions core/src/db/engine/ExecutionEngineImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,6 @@ ExecutionEngineImpl::Search(int64_t n, const float* data, int64_t k, const milvu
milvus::json conf = extra_params;
conf[knowhere::meta::TOPK] = k;
auto adapter = knowhere::AdapterMgr::GetInstance().GetAdapter(index_->index_type());
ENGINE_LOG_DEBUG << "Search params: " << conf.dump();
if (!adapter->CheckSearch(conf, index_->index_type(), index_->index_mode())) {
throw Exception(DB_ERROR, "Illegal search params");
}
Expand Down Expand Up @@ -813,7 +812,6 @@ ExecutionEngineImpl::Search(int64_t n, const uint8_t* data, int64_t k, const mil
milvus::json conf = extra_params;
conf[knowhere::meta::TOPK] = k;
auto adapter = knowhere::AdapterMgr::GetInstance().GetAdapter(index_->index_type());
ENGINE_LOG_DEBUG << "Search params: " << conf.dump();
if (!adapter->CheckSearch(conf, index_->index_type(), index_->index_mode())) {
throw Exception(DB_ERROR, "Illegal search params");
}
Expand Down Expand Up @@ -851,7 +849,6 @@ ExecutionEngineImpl::Search(int64_t n, const std::vector<int64_t>& ids, int64_t
milvus::json conf = extra_params;
conf[knowhere::meta::TOPK] = k;
auto adapter = knowhere::AdapterMgr::GetInstance().GetAdapter(index_->index_type());
ENGINE_LOG_DEBUG << "Search params: " << conf.dump();
if (!adapter->CheckSearch(conf, index_->index_type(), index_->index_mode())) {
throw Exception(DB_ERROR, "Illegal search params");
}
Expand Down

0 comments on commit 9443af3

Please sign in to comment.