mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-17 01:03:00 +00:00
Clean up unreachable blocks after fatal_io_error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user