aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-03-15 12:31:23 +0100
committerAlex Auvolat <alex@adnab.me>2022-03-23 10:25:19 +0100
commite480aaf338e3dfa280f0a78921c024265c811458 (patch)
treeecfa923127094b492154fa482ca3da8de64b8d90 /src/model
parent8fd6745745f5676b5e80920792fa23453f3a20d7 (diff)
downloadgarage-e480aaf338e3dfa280f0a78921c024265c811458.tar.gz
garage-e480aaf338e3dfa280f0a78921c024265c811458.zip
Make background tranquility a configurable parameter
Diffstat (limited to 'src/model')
-rw-r--r--src/model/garage.rs15
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(