Add WRITE_STABLE to the secondary OSD for the upcoming replication support

This commit is contained in:
Vitaliy Filippov
2020-09-01 16:18:58 +03:00
parent 2e8c69fc5b
commit 3932c9b2e2
10 changed files with 63 additions and 44 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ void osd_messenger_t::handle_op_hdr(osd_client_t *cl)
cur_op->buf = memalign(MEM_ALIGNMENT, cur_op->req.sec_rw.len);
cl->read_remaining = 0;
}
else if (cur_op->req.hdr.opcode == OSD_OP_SEC_WRITE)
else if (cur_op->req.hdr.opcode == OSD_OP_SEC_WRITE ||
cur_op->req.hdr.opcode == OSD_OP_SEC_WRITE_STABLE)
{
if (cur_op->req.sec_rw.len > 0)
cur_op->buf = memalign(MEM_ALIGNMENT, cur_op->req.sec_rw.len);