Implement chained (optimized) read in the primary OSD code

This commit is contained in:
Vitaliy Filippov
2021-04-10 17:44:12 +03:00
parent 6950b8e3a0
commit 38a3df4a0e
11 changed files with 768 additions and 78 deletions
+1
View File
@@ -811,6 +811,7 @@ bool cluster_client_t::try_send(cluster_op_t *op, int i)
.inode = op->cur_inode,
.offset = part->offset,
.len = part->len,
.meta_revision = 0,
} },
.bitmap = op->opcode == OSD_OP_WRITE ? NULL : op->part_bitmaps + pg_bitmap_size*i,
.bitmap_len = (unsigned)(op->opcode == OSD_OP_WRITE ? 0 : pg_bitmap_size),