Clean up unreachable blocks after fatal_io_error

This commit is contained in:
John Spray
2023-10-05 09:58:09 +01:00
parent 89bc3aef1a
commit dd54c7e687
3 changed files with 0 additions and 7 deletions
@@ -198,7 +198,6 @@ impl ListWriter {
Ok(None)
} else {
on_fatal_io_error(&e);
unreachable!();
}
}
}
@@ -227,8 +226,6 @@ impl ListWriter {
// This is fatal: any failure to read this local directory indicates a
// storage problem or configuration problem of the node.
virtual_file::on_fatal_io_error(&e);
return Err(e.into());
}
};
@@ -300,7 +297,6 @@ impl ListWriter {
Ok(b) => b,
Err(e) => {
virtual_file::on_fatal_io_error(&e);
unreachable!();
}
};
@@ -306,8 +306,6 @@ where
metrics::DELETION_QUEUE.unexpected_errors.inc();
on_fatal_io_error(&e);
break;
}
}
}
-1
View File
@@ -275,7 +275,6 @@ impl Error {
// having to apply the same "terminate on errors" behavior.
if is_fatal_io_error(&instance.inner) {
on_fatal_io_error(&instance.inner);
unreachable!();
}
instance