Allow to read specific versions

This commit is contained in:
Vitaliy Filippov
2019-11-10 13:26:56 +03:00
parent 2d0334f9b9
commit e5caffb6ac
3 changed files with 8 additions and 11 deletions
+2 -4
View File
@@ -66,8 +66,7 @@ void blockstore::handle_event(ring_data_t *data)
else
{
struct blockstore_operation* op = (struct blockstore_operation*)data->op;
if ((op->flags & OP_TYPE_MASK) == OP_READ_DIRTY ||
(op->flags & OP_TYPE_MASK) == OP_READ)
if ((op->flags & OP_TYPE_MASK) == OP_READ)
{
handle_read_event(data, op);
}
@@ -145,8 +144,7 @@ void blockstore::loop()
unsigned ring_space = io_uring_sq_space_left(ringloop->ring);
unsigned prev_sqe_pos = ringloop->ring->sq.sqe_tail;
int dequeue_op = 0;
if ((op->flags & OP_TYPE_MASK) == OP_READ_DIRTY ||
(op->flags & OP_TYPE_MASK) == OP_READ)
if ((op->flags & OP_TYPE_MASK) == OP_READ)
{
dequeue_op = dequeue_read(op);
}