aboutsummaryrefslogtreecommitdiff
path: root/src/block/manager.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-03-06 14:11:25 +0000
committerAlex <alex@adnab.me>2023-03-06 14:11:25 +0000
commit2dc80abbb117d5e85f9c19c99b442e42ad2ca240 (patch)
tree652382d58428f17931b76b8e804907c49146cced /src/block/manager.rs
parent00dcfc97a5d397120ea722b2c836fb6968e87e39 (diff)
parent148b66b843be7f79f15b0a3805f38a0c3e944214 (diff)
downloadgarage-2dc80abbb117d5e85f9c19c99b442e42ad2ca240.tar.gz
garage-2dc80abbb117d5e85f9c19c99b442e42ad2ca240.zip
Merge pull request 'block/repair.rs: Added a random element of 10 days to SCRUB_INTERVAL' (#516) from jpds/garage:scrub-randomize-window into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/516
Diffstat (limited to 'src/block/manager.rs')
-rw-r--r--src/block/manager.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs
index 051a9f93..bfa66069 100644
--- a/src/block/manager.rs
+++ b/src/block/manager.rs
@@ -185,6 +185,9 @@ impl BlockManager {
vars.register_ro(&self.scrub_persister, "scrub-last-completed", |p| {
p.get_with(|x| msec_to_rfc3339(x.time_last_complete_scrub))
});
+ vars.register_ro(&self.scrub_persister, "scrub-next-run", |p| {
+ p.get_with(|x| msec_to_rfc3339(x.time_next_run_scrub))
+ });
vars.register_ro(&self.scrub_persister, "scrub-corruptions_detected", |p| {
p.get_with(|x| x.corruptions_detected)
});