From 4b996cd6229f345847a371268e257285eb6e3524 Mon Sep 17 00:00:00 2001 From: op-hunter Date: Fri, 27 Mar 2020 13:07:57 +0800 Subject: [PATCH] fix commpile error because of interface changed (#1773) * fix commpile error because of interface changed Signed-off-by: lichengming * fix comiple error Signed-off-by: lichengming Co-authored-by: lichengming --- .../index/knowhere/knowhere/index/vector_index/IndexAnnoy.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/index/knowhere/knowhere/index/vector_index/IndexAnnoy.cpp b/core/src/index/knowhere/knowhere/index/vector_index/IndexAnnoy.cpp index 4adb9f62..7f7d7748 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/IndexAnnoy.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/IndexAnnoy.cpp @@ -121,8 +121,7 @@ IndexAnnoy::Query(const DatasetPtr& dataset_ptr, const Config& config) { auto all_num = rows * k; auto p_id = (int64_t*)malloc(all_num * sizeof(int64_t)); auto p_dist = (float*)malloc(all_num * sizeof(float)); - faiss::ConcurrentBitsetPtr blacklist = nullptr; - GetBlacklist(blacklist); + faiss::ConcurrentBitsetPtr blacklist = GetBlacklist(); #pragma omp parallel for for (unsigned int i = 0; i < rows; ++i) { -- GitLab