FSM is a dreadful unreadable thing, reimplement using gotos

This commit is contained in:
Vitaliy Filippov
2019-11-12 18:16:41 +03:00
parent 34451b6e44
commit 4afa95b0e3
4 changed files with 150 additions and 126 deletions
+5
View File
@@ -83,6 +83,11 @@ void blockstore::handle_event(ring_data_t *data)
{
handle_stable_event(data, op);
}
else if ((op->flags & OP_TYPE_MASK) == OP_INTERNAL_FLUSH)
{
// Operation is not a blockstore_operation at all
}
}
}