提交 7821ead8 编写于 作者: W Wang Xiangyu

free moved tasks and executed tasks (#3578)

Signed-off-by: NWang Xiangyu <xy.wang@zilliz.com>
上级 26cf6c40
......@@ -174,7 +174,7 @@ Resource::loader_function() {
task_item->Loaded();
if (task_item->from) {
task_item->from->Moved();
// task_item->from->task = FinishedTask::Create();
task_item->from->task = FinishedTask::Create(task_item->from->task);
task_item->from = nullptr;
}
if (subscriber_) {
......@@ -204,7 +204,7 @@ Resource::executor_function() {
}
auto start = get_current_timestamp();
Process(task_item->task);
// task_item->task = FinishedTask::Create();
task_item->task = FinishedTask::Create(task_item->task);
auto finish = get_current_timestamp();
++total_task_;
total_cost_ += finish - start;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册