WIP primary OSD read

This commit is contained in:
Vitaliy Filippov
2020-01-30 22:06:46 +03:00
parent f4707709c6
commit ec50957c41
10 changed files with 133 additions and 19 deletions
+9 -2
View File
@@ -12,6 +12,9 @@ osd_t::osd_t(blockstore_config_t & config, blockstore_t *bs, ring_loop_t *ringlo
this->config = config;
this->bs = bs;
this->ringloop = ringloop;
this->bs_block_size = bs->get_block_size();
// FIXME: use bitmap granularity instead
this->bs_disk_alignment = bs->get_disk_alignment();
bind_address = config["bind_address"];
if (bind_address == "")
@@ -278,9 +281,13 @@ void osd_t::exec_op(osd_op_t *cur_op)
{
exec_show_config(cur_op);
}
else if (cur_op->op.hdr.opcode == OSD_OP_READ || cur_op->op.hdr.opcode == OSD_OP_WRITE)
else if (cur_op->op.hdr.opcode == OSD_OP_READ)
{
exec_primary(cur_op);
exec_primary_read(cur_op);
}
else if (cur_op->op.hdr.opcode == OSD_OP_WRITE)
{
exec_primary_write(cur_op);
}
else
{