fix:reduce_write_quorum_errs

This commit is contained in:
weisd
2024-09-03 13:34:03 +08:00
parent ced17f6deb
commit 2935945585
8 changed files with 55 additions and 49 deletions
-9
View File
@@ -175,15 +175,6 @@ fn check_format_erasure_value(format: &FormatV3) -> Result<()> {
Ok(())
}
pub fn default_partiy_count(drive: usize) -> usize {
match drive {
1 => 0,
2 | 3 => 1,
4 | 5 => 2,
6 | 7 => 3,
_ => 4,
}
}
// read_format_file_all 读取所有foramt.json
async fn read_format_file_all(disks: &[Option<DiskStore>], heal: bool) -> (Vec<Option<FormatV3>>, Vec<Option<Error>>) {
let mut futures = Vec::with_capacity(disks.len());