Sync metadata & data after copying from journal

This commit is contained in:
Vitaliy Filippov
2019-11-14 14:09:07 +03:00
parent bc549553e4
commit f1e236c6e8
5 changed files with 152 additions and 103 deletions
-1
View File
@@ -149,7 +149,6 @@ void blockstore::handle_write_event(ring_data_t *data, blockstore_operation *op)
{
if (data->res < 0)
{
// write error
// FIXME: our state becomes corrupted after a write error. maybe do something better than just die
throw new std::runtime_error("write operation failed. in-memory state is corrupted. AAAAAAAaaaaaaaaa!!!111");
}