aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-03-15 09:22:33 +0000
committerAlex <alex@adnab.me>2024-03-15 09:22:33 +0000
commita80ce6ab5ad9834c3721eeb4f626d53c9a8bb1f4 (patch)
tree36cabc0cdee72d13b778e5668c454b35e842c293 /src/util
parent62b01d8705b8525cfe323aecf4ea085ac8671a8e (diff)
parent990205dc3b2f552e9b68168c0aad3e96e2d6f2f0 (diff)
downloadgarage-a80ce6ab5ad9834c3721eeb4f626d53c9a8bb1f4.tar.gz
garage-a80ce6ab5ad9834c3721eeb4f626d53c9a8bb1f4.zip
Merge pull request '`disable_scrub` configuration option' (#774) from disable-scrub into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/774
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/config.rs b/src/util/config.rs
index 056c625d..7338a506 100644
--- a/src/util/config.rs
+++ b/src/util/config.rs
@@ -23,6 +23,10 @@ pub struct Config {
#[serde(default)]
pub data_fsync: bool,
+ /// Disable automatic scrubbing of the data directory
+ #[serde(default)]
+ pub disable_scrub: bool,
+
/// Size of data blocks to save to disk
#[serde(
deserialize_with = "deserialize_capacity",