[disable-scrub] implement a disable_scrub configuration option

This commit is contained in:
Alex Auvolat
2024-03-14 16:49:14 +01:00
parent 62b01d8705
commit 7c86ff6c37
3 changed files with 42 additions and 39 deletions
+4
View File
@@ -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",