diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-04 13:07:13 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-04 13:07:13 +0100 |
commit | f3f27293df83986ba29fb03f8af26a2177518e20 (patch) | |
tree | aebfa6b6936a974d40846a4c56b17aefac4f2526 /src/garage/repair | |
parent | 13c554988623663a9416439baf4f85f6fa91e502 (diff) | |
download | garage-f3f27293df83986ba29fb03f8af26a2177518e20.tar.gz garage-f3f27293df83986ba29fb03f8af26a2177518e20.zip |
Uniform framework for bg variable management
Diffstat (limited to 'src/garage/repair')
-rw-r--r-- | src/garage/repair/online.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/garage/repair/online.rs b/src/garage/repair/online.rs index 627e3bf3..0e14ed51 100644 --- a/src/garage/repair/online.rs +++ b/src/garage/repair/online.rs @@ -51,7 +51,11 @@ pub async fn launch_online_repair( ScrubCmd::Resume => ScrubWorkerCommand::Resume, ScrubCmd::Cancel => ScrubWorkerCommand::Cancel, ScrubCmd::SetTranquility { tranquility } => { - ScrubWorkerCommand::SetTranquility(tranquility) + garage + .block_manager + .scrub_persister + .set_with(|x| x.tranquility = tranquility)?; + return Ok(()); } }; info!("Sending command to scrub worker: {:?}", cmd); |