diff --git a/ecstore/src/store_init.rs b/ecstore/src/store_init.rs index e18ebe13f..1a09e6ee4 100644 --- a/ecstore/src/store_init.rs +++ b/ecstore/src/store_init.rs @@ -127,8 +127,15 @@ fn get_format_file_in_quorum(formats: &[Option]) -> Result { let (max_drives, max_count) = countmap.iter().max_by_key(|&(_, c)| c).unwrap_or((&0, &0)); + warn!("get_format_file_in_quorum fi: {:?}", &formats); + if *max_drives == 0 || *max_count < formats.len() / 2 { - warn!("*max_drives == 0 || *max_count < formats.len() / 2"); + warn!( + "*max_drives == 0 || *max_count < formats.len() / 2, {} || {}<{}", + max_drives, + max_count, + formats.len() / 2 + ); return Err(Error::new(ErasureError::ErasureReadQuorum)); }