Commit 12da0026 authored by Benjamin Woodruff's avatar Benjamin Woodruff

Remove AtomicBool from local_is_partial

parent 89e6db9b
......@@ -183,7 +183,7 @@ struct TurboTasksBackendInner<B: BackingStorage> {
storage: Storage,
/// When true, the backing_storage has data that is not in the local storage.
local_is_partial: AtomicBool,
local_is_partial: bool,
/// Number of executing operations + Highest bit is set when snapshot is
/// requested. When that bit is set, operations should pause until the
......@@ -258,7 +258,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
),
persisted_task_cache_log: need_log.then(|| Sharded::new(shard_amount)),
task_cache: FxDashMap::default(),
local_is_partial: AtomicBool::new(next_task_id != TaskId::MIN),
local_is_partial: next_task_id != TaskId::MIN,
storage: Storage::new(shard_amount, small_preallocation),
in_progress_operations: AtomicUsize::new(0),
snapshot_request: Mutex::new(SnapshotRequest::new()),
......
......@@ -124,7 +124,7 @@ impl<'e, B: BackingStorage> ExecuteContextImpl<'e, B> {
}
fn should_restore_from_backing_storage(&self) -> bool {
self.backend.should_restore() && self.backend.local_is_partial.load(Ordering::Acquire)
self.backend.should_restore() && self.backend.local_is_partial
}
fn restore_task_data(
......
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