提交 f90b57d1 编写于 作者: Y Yu Kun

revert in searchtask


Former-commit-id: 364a871624ad5a664f8aa9fad2c2006b0388f03d
上级 53aac70a
......@@ -175,8 +175,8 @@ XSearchTask::Execute() {
//step 4: pick up topk result
XSearchTask::TopkResult(result_set, inner_k, metric_l2, context->GetResult());
context->AccumReduceCost(span);
span = rc.RecordSection("reduce topk for context:" + context->Identity());
context->AccumReduceCost(span);
} catch (std::exception &ex) {
ENGINE_LOG_ERROR << "SearchTask encounter exception: " << ex.what();
context->IndexSearchDone(index_id_);//mark as done avoid dead lock, even search failed
......@@ -188,6 +188,7 @@ XSearchTask::Execute() {
}
rc.ElapseFromBegin("totally cost");
// release index in resource
index_engine_ = nullptr;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册