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
-2
View File
@@ -111,8 +111,6 @@ void blockstore::handle_sync_event(ring_data_t *data, blockstore_operation *op)
{
if (data->res < 0)
{
// sync 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");
}
op->pending_ops--;