aboutsummaryrefslogtreecommitdiff
path: root/src/model/garage.rs
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/model/garage.rs
parent62b01d8705b8525cfe323aecf4ea085ac8671a8e (diff)
downloadgarage-7c86ff6c37cc93cca030bde060c41b8184b2cd61.tar.gz
garage-7c86ff6c37cc93cca030bde060c41b8184b2cd61.zip
[disable-scrub] implement a `disable_scrub` configuration option
Diffstat (limited to 'src/model/garage.rs')
-rw-r--r--src/model/garage.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/model/garage.rs b/src/model/garage.rs
index 18421ca3..acf943f6 100644
--- a/src/model/garage.rs
+++ b/src/model/garage.rs
@@ -177,14 +177,7 @@ impl Garage {
};
info!("Initialize block manager...");
- let block_manager = BlockManager::new(
- &db,
- config.data_dir.clone(),
- config.data_fsync,
- config.compression_level,
- data_rep_param,
- system.clone(),
- )?;
+ let block_manager = BlockManager::new(&db, &config, data_rep_param, system.clone())?;
block_manager.register_bg_vars(&mut bg_vars);
// ---- admin tables ----