Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Boytsov authored and Leonid Boytsov committed Jul 13, 2018
2 parents 4197cf2 + 7592671 commit 1bfa6bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion similarity_search/include/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class RuntimeErrorWrapper {

#define CHECK_MSG(condition,message) \
if (!(condition)) {\
LOG(LIB_ERROR) << "Check failed: " << #condition; \
LOG(LIB_ERROR) << "Check failed: " << #condition << " " << string(message); \
throw runtime_error("Check failed: " + string(message)); \
}

Expand Down
2 changes: 1 addition & 1 deletion similarity_search/src/method/hnsw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ namespace similarity {
void
Hnsw<dist_t>::Search(KNNQuery<dist_t> *query, IdType) const
{
if (this->data_.empty()) {
if (this->data_.empty() and this->data_rearranged_.empty()) {
return;
}
bool useOld = searchAlgoType_ == kOld || (searchAlgoType_ == kHybrid && ef_ >= 1000);
Expand Down

0 comments on commit 1bfa6bf

Please sign in to comment.