aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/block/repair.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/block/repair.rs b/src/block/repair.rs
index bd14085f..a464e2b6 100644
--- a/src/block/repair.rs
+++ b/src/block/repair.rs
@@ -372,6 +372,9 @@ impl ScrubWorker {
ScrubWorkerCommand::Cancel => {
self.work = match std::mem::take(&mut self.work) {
ScrubWorkerState::Running { .. } | ScrubWorkerState::Paused { .. } => {
+ if let Err(e) = self.persister.set_with(|x| x.checkpoint = None) {
+ error!("Could not save scrub checkpoint: {}", e);
+ }
ScrubWorkerState::Finished
}
work => {