Commit 683ed334 authored by Tobias Koppers's avatar Tobias Koppers Committed by Tobias Koppers

read task cell should only need Data

parent b9232ff4
...@@ -880,10 +880,10 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> { ...@@ -880,10 +880,10 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
// Having a task_pair here is not optimal, but otherwise this would lead to a race // Having a task_pair here is not optimal, but otherwise this would lead to a race
// condition. See below. // condition. See below.
// TODO(sokra): solve that in a more performant way. // TODO(sokra): solve that in a more performant way.
let (task, reader) = ctx.task_pair(task_id, reader_id, TaskDataCategory::All); let (task, reader) = ctx.task_pair(task_id, reader_id, TaskDataCategory::Data);
(task, Some(reader)) (task, Some(reader))
} else { } else {
(ctx.task(task_id, TaskDataCategory::All), None) (ctx.task(task_id, TaskDataCategory::Data), None)
}; };
let content = if final_read_hint { let content = if final_read_hint {
...@@ -986,7 +986,9 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> { ...@@ -986,7 +986,9 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
TaskExecutionReason::CellNotAvailable, TaskExecutionReason::CellNotAvailable,
|| self.get_task_desc_fn(task_id), || self.get_task_desc_fn(task_id),
)); ));
ctx.schedule_task(task, TaskPriority::Initial); drop(task);
ctx.schedule(task_id, TaskPriority::Initial);
Ok(Err(listener)) Ok(Err(listener))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment