CEPH_OSD_OP_CHECKSUM
So that crimson's handling of CEPH_OSD_OP_CHECKSUM is idempotent
Fixes: https://tracker.ceph.com/issues/65804
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
(cherry picked from commit
899afd3472abb8055924278e7ee29c609ec4eb54)
auto init_value_p = init_value_bl.cbegin();
try {
decode(init_value, init_value_p);
- // chop off the consumed part
- init_value_bl.splice(0, init_value_p.get_off());
} catch (const ceph::buffer::end_of_buffer&) {
logger().warn("{}: init value not provided", __func__);
return crimson::ct_error::invarg::make();