Unverified Commit cedfb53a authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: change invalidator and immutable to data category (#88889)

### What?

save a few bits
parent 9e97759a
...@@ -2091,7 +2091,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> { ...@@ -2091,7 +2091,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
if let Some(dependencies) = task_dependencies_for_immutable if let Some(dependencies) = task_dependencies_for_immutable
&& dependencies && dependencies
.iter() .iter()
.all(|&task_id| ctx.task(task_id, TaskDataCategory::Meta).immutable()) .all(|&task_id| ctx.task(task_id, TaskDataCategory::Data).immutable())
{ {
is_now_immutable = true; is_now_immutable = true;
} }
......
...@@ -133,11 +133,11 @@ struct TaskStorageSchema { ...@@ -133,11 +133,11 @@ struct TaskStorageSchema {
// Persisted flags come first, then transient flags. // Persisted flags come first, then transient flags.
// ========================================================================= // =========================================================================
/// Whether the task has an invalidator. /// Whether the task has an invalidator.
#[field(storage = "flag", category = "meta")] #[field(storage = "flag", category = "data")]
invalidator: bool, invalidator: bool,
/// Whether the task output is immutable (persisted). /// Whether the task output is immutable (persisted).
#[field(storage = "flag", category = "meta")] #[field(storage = "flag", category = "data")]
immutable: bool, immutable: bool,
/// Whether clean in current session (transient flag). /// Whether clean in current session (transient flag).
......
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