From 84e2a1f836926523aa442b74a1ba749522b7e57a Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 11 Feb 2025 10:49:57 +0100 Subject: [PATCH] rename the atomic to something more meaningful --- crates/index-scheduler/src/scheduler/process_dump_creation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/index-scheduler/src/scheduler/process_dump_creation.rs b/crates/index-scheduler/src/scheduler/process_dump_creation.rs index 4a1aef44a..a6d785b2f 100644 --- a/crates/index-scheduler/src/scheduler/process_dump_creation.rs +++ b/crates/index-scheduler/src/scheduler/process_dump_creation.rs @@ -109,7 +109,7 @@ impl IndexScheduler { progress.update_progress(DumpCreationProgress::DumpTheBatches); let mut dump_batches = dump.create_batches_queue()?; - let (atomic, update_batch_progress) = + let (atomic_batch_progress, update_batch_progress) = AtomicBatchStep::new(self.queue.batches.all_batches.len(&rtxn)? as u32); progress.update_progress(update_batch_progress); @@ -134,7 +134,7 @@ impl IndexScheduler { } dump_batches.push_batch(&b)?; - atomic.fetch_add(1, Ordering::Relaxed); + atomic_batch_progress.fetch_add(1, Ordering::Relaxed); } dump_batches.flush()?;