diff options
author | Alex Auvolat <alex@adnab.me> | 2020-06-30 15:03:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-06-30 15:03:34 +0200 |
commit | db6f1f35a869f9afa22198ee2ac32a812afae3c5 (patch) | |
tree | 98e85621b6fcdf9d9f1bb758efbbac79987a439e /src | |
parent | c56de7fdd1b6f1606e0f1f9a9e3038fa9dd479f8 (diff) | |
download | garage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.tar.gz garage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.zip |
Rename epidemic_factor to epidemic_fanout (that's what it is); complete conf example in readme
Diffstat (limited to 'src')
-rw-r--r-- | src/core/garage.rs | 4 | ||||
-rw-r--r-- | src/util/config.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/garage.rs b/src/core/garage.rs index d77b0acd..46e0d02f 100644 --- a/src/core/garage.rs +++ b/src/core/garage.rs @@ -66,8 +66,8 @@ impl Garage { }; let control_rep_param = TableFullReplication::new( - config.meta_epidemic_factor, - (config.meta_epidemic_factor + 1) / 2, + config.meta_epidemic_fanout, + (config.meta_epidemic_fanout + 1) / 2, ); info!("Initialize block manager..."); diff --git a/src/util/config.rs b/src/util/config.rs index 28349530..5c01712b 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -24,8 +24,8 @@ pub struct Config { #[serde(default = "default_replication_factor")] pub meta_replication_factor: usize, - #[serde(default = "default_epidemic_factor")] - pub meta_epidemic_factor: usize, + #[serde(default = "default_epidemic_fanout")] + pub meta_epidemic_fanout: usize, #[serde(default = "default_replication_factor")] pub data_replication_factor: usize, @@ -57,7 +57,7 @@ fn default_block_size() -> usize { fn default_replication_factor() -> usize { 3 } -fn default_epidemic_factor() -> usize { +fn default_epidemic_fanout() -> usize { 3 } |