aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-14 16:49:14 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-14 17:01:16 +0100
commit7c86ff6c37cc93cca030bde060c41b8184b2cd61 (patch)
tree568b7ca07cb2759737429c882a6e59784a72c4c4 /src/util
parent62b01d8705b8525cfe323aecf4ea085ac8671a8e (diff)
downloadgarage-7c86ff6c37cc93cca030bde060c41b8184b2cd61.tar.gz
garage-7c86ff6c37cc93cca030bde060c41b8184b2cd61.zip
[disable-scrub] implement a `disable_scrub` configuration option
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",