Skip to content

Commit

Permalink
fix:miss wait thread tasks finish in diskann. (#357)
Browse files Browse the repository at this point in the history
Signed-off-by: cqy123456 <qianya.cheng@zilliz.com>
  • Loading branch information
cqy123456 committed Jan 22, 2024
1 parent 433de97 commit b14a4d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thirdparty/DiskANN/src/partition_and_pq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ int generate_pq_data_from_pivots(const std::string data_file,
}
}));
}
for (auto &future : futures) {
future.wait();
}

futures.clear();
futures.reserve(num_pq_chunks);
Expand Down

0 comments on commit b14a4d6

Please sign in to comment.