auto heal(1)

Signed-off-by: root <root@DESKTOP-QLJNS6S.localdomain>
This commit is contained in:
root
2024-11-16 20:43:34 +08:00
parent 7eed1a6db3
commit 01e0e4b673
20 changed files with 988 additions and 1791 deletions
+1 -3
View File
@@ -424,7 +424,7 @@ impl Erasure {
writers: &mut [Option<BitrotWriter>],
readers: Vec<Option<BitrotReader>>,
total_length: usize,
prefer: &[bool],
_prefer: &[bool],
) -> Result<()> {
if writers.len() != self.parity_shards + self.data_shards {
return Err(Error::from_string("invalid argument"));
@@ -437,8 +437,6 @@ impl Erasure {
end_block += 1;
}
let mut bytes_writed = 0;
let mut errs = Vec::new();
for _ in start_block..=end_block {
let mut bufs = reader.read().await?;