Remove in_progress_ops

This commit is contained in:
Vitaliy Filippov
2019-11-10 12:52:37 +03:00
parent ae56fe1067
commit 2d0334f9b9
4 changed files with 0 additions and 9 deletions
-2
View File
@@ -126,7 +126,6 @@ int blockstore::dequeue_read(blockstore_operation *read_op)
}
read_op->retval = 0;
read_op->pending_ops = read_op->read_vec.size();
in_progress_ops.insert(read_op);
return 1;
}
@@ -143,6 +142,5 @@ void blockstore::handle_read_event(ring_data_t *data, blockstore_operation *op)
if (op->retval == 0)
op->retval = op->len;
op->callback(op);
in_progress_ops.erase(op);
}
}