diff options
author | Alex Auvolat <alex@adnab.me> | 2022-03-15 12:31:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-03-23 10:25:19 +0100 |
commit | e480aaf338e3dfa280f0a78921c024265c811458 (patch) | |
tree | ecfa923127094b492154fa482ca3da8de64b8d90 /src/model/garage.rs | |
parent | 8fd6745745f5676b5e80920792fa23453f3a20d7 (diff) | |
download | garage-e480aaf338e3dfa280f0a78921c024265c811458.tar.gz garage-e480aaf338e3dfa280f0a78921c024265c811458.zip |
Make background tranquility a configurable parameter
Diffstat (limited to 'src/model/garage.rs')
-rw-r--r-- | src/model/garage.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/model/garage.rs b/src/model/garage.rs index 93402ca2..cbceeb64 100644 --- a/src/model/garage.rs +++ b/src/model/garage.rs @@ -7,11 +7,11 @@ use garage_util::config::*; use garage_rpc::system::System; +use garage_block::manager::*; use garage_table::replication::ReplicationMode; use garage_table::replication::TableFullReplication; use garage_table::replication::TableShardedReplication; use garage_table::*; -use garage_block::manager::*; use crate::block_ref_table::*; use crate::bucket_alias_table::*; @@ -86,11 +86,14 @@ impl Garage { }; info!("Initialize block manager..."); - let block_manager = - BlockManager::new(&db, - config.data_dir.clone(), - config.compression_level, - data_rep_param, system.clone()); + let block_manager = BlockManager::new( + &db, + config.data_dir.clone(), + config.compression_level, + config.block_manager_background_tranquility, + data_rep_param, + system.clone(), + ); info!("Initialize block_ref_table..."); let block_ref_table = Table::new( |