mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-04-01 20:54:14 +00:00
panic instead of abort
This commit is contained in:
@@ -146,8 +146,7 @@ impl Store {
|
|||||||
}
|
}
|
||||||
if let Err(e) = sync_to_disk(&mut *self.file, &patch_bin).await {
|
if let Err(e) = sync_to_disk(&mut *self.file, &patch_bin).await {
|
||||||
eprintln!("I/O Error: {}", e);
|
eprintln!("I/O Error: {}", e);
|
||||||
eprintln!("Failed to sync data to disk after successfully applying changes in memory. Aborting...");
|
panic!("Failed to sync data to disk after successfully applying changes in memory.");
|
||||||
std::process::abort();
|
|
||||||
// TODO: try to recover.
|
// TODO: try to recover.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user