Remove redundant code (#10343)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/10541/head
Cai Yudong 2021-10-25 14:27:12 +08:00 committed by GitHub
parent 638d0ac291
commit be57e8fdd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -84,7 +84,6 @@ GetResultData(std::vector<std::vector<int64_t>>& search_records,
#else
float prev_dis = MAXFLOAT;
std::unordered_set<int64_t> prev_pk_set;
prev_pk_set.insert(-1);
while (loc_offset - query_offset < topk) {
result_pairs[0].reset_distance();
std::sort(result_pairs.begin(), result_pairs.end(), std::greater<>());