]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd/pg_backend: DONOT modify OSDOp::indata when handling 58025/head
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 6 May 2024 02:11:40 +0000 (10:11 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 13 Jun 2024 12:39:30 +0000 (15:39 +0300)
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)

src/crimson/osd/pg_backend.cc

index 143f522bb37510ae4adf3914522b78be35d6e480..2c707f6d573a0f4606ceed0227edad9194c8d5df 100644 (file)
@@ -341,8 +341,6 @@ namespace {
     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();