Skip to content

Commit 3b685ea

Browse files
committed
address review: move to Ordering::Relaxed
1 parent 540324c commit 3b685ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zstor/src/actors/repairer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ struct SweepGuard {
6767

6868
impl Drop for SweepGuard {
6969
fn drop(&mut self) {
70-
self.flag.store(false, Ordering::Release);
70+
self.flag.store(false, Ordering::Relaxed);
7171
}
7272
}
7373

7474
impl Handler<SweepObjects> for RepairActor {
7575
type Result = ResponseFuture<()>;
7676

7777
fn handle(&mut self, _: SweepObjects, _: &mut Self::Context) -> Self::Result {
78-
if self.handling_sweep_objects.swap(true, Ordering::Acquire) {
78+
if self.handling_sweep_objects.swap(true, Ordering::Relaxed) {
7979
log::info!("Dropping SweepObjects message - still processing");
8080
return Box::pin(async {});
8181
}

0 commit comments

Comments
 (0)