From 3882d5ba36f48751fdf6e5b82eae0dd990238655 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 5 Mar 2021 15:09:18 +0100 Subject: Remove epidemic propagation for fully replicated stuff: write directly to all nodes --- src/util/config.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/util') diff --git a/src/util/config.rs b/src/util/config.rs index f4c841b7..cd65e009 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -23,12 +23,12 @@ pub struct Config { #[serde(default = "default_block_size")] pub block_size: usize, + #[serde(default = "default_control_write_max_faults")] + pub control_write_max_faults: usize, + #[serde(default = "default_replication_factor")] pub meta_replication_factor: usize, - #[serde(default = "default_epidemic_fanout")] - pub meta_epidemic_fanout: usize, - #[serde(default = "default_replication_factor")] pub data_replication_factor: usize, @@ -68,8 +68,8 @@ fn default_block_size() -> usize { fn default_replication_factor() -> usize { 3 } -fn default_epidemic_fanout() -> usize { - 3 +fn default_control_write_max_faults() -> usize { + 1 } pub fn read_config(config_file: PathBuf) -> Result { -- cgit v1.2.3