]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/pg_backend: remove incorrect length limitation on CMPEXT
authorSamuel Just <sjust@redhat.com>
Thu, 6 Oct 2022 01:56:26 +0000 (18:56 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 10 Oct 2022 01:00:32 +0000 (18:00 -0700)
We specifically send back errors < -MAX_ERRNO to indicate offset.

Fixes: https://tracker.ceph.com/issues/57773
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/pg_backend.cc

index 8e02d3591c0f074e8eb62f5c3749b039cf07dbd8..253848da7f177cbef57c90a461132fdf91f8cfa2 100644 (file)
@@ -423,11 +423,6 @@ PGBackend::cmp_ext_ierrorator::future<>
 PGBackend::cmp_ext(const ObjectState& os, OSDOp& osd_op)
 {
   const ceph_osd_op& op = osd_op.op;
-  // return the index of the first unmatched byte in the payload, hence the
-  // strange limit and check
-  if (op.extent.length > MAX_ERRNO) {
-    return crimson::ct_error::invarg::make();
-  }
   uint64_t obj_size = os.oi.size;
   if (os.oi.truncate_seq < op.extent.truncate_seq &&
       op.extent.offset + op.extent.length > op.extent.truncate_size) {