Former-commit-id: 52ff843377f1463bb4cad7fcf67366b3facd8d10
This commit is contained in:
jinhai 2019-10-31 11:05:04 +00:00
parent 57e263bd55
commit d01c555604
2 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,8 @@ class SearchJob : public Job {
return index_files_;
}
std::mutex& mutex() {
std::mutex&
mutex() {
return mutex_;
}

View File

@ -222,7 +222,7 @@ XSearchTask::Execute() {
{
std::unique_lock<std::mutex> lock(search_job->mutex());
XSearchTask::MergeTopkToResultSet(output_ids, output_distance, spec_k, nq, topk, metric_l2,
search_job->GetResult());
search_job->GetResult());
}
span = rc.RecordSection(hdr + ", reduce topk");