]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rados: Object::list_parts() starts after marker
authorCasey Bodley <cbodley@redhat.com>
Fri, 18 Oct 2024 17:45:54 +0000 (13:45 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 8 Jan 2025 00:17:37 +0000 (19:17 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc

index 0c25316567b1883a6f3dfb3aa064f479477215be..49ad4bb3bb21747f49bdadf385b9382662fbb25e 100644 (file)
@@ -2505,12 +2505,12 @@ int RadosObject::list_parts(const DoutPrefixProvider* dpp, CephContext* cct,
                  "{} seeking to part #{} in the object manifest",
                  __func__, marker);
 
-    part_iter  = manifest->obj_find_part(dpp, marker);
+    part_iter  = manifest->obj_find_part(dpp, marker + 1);
 
     if (part_iter == end) {
       ldpp_dout_fmt(dpp, 5,
                    "{} failed to find part #{} in the object manifest",
-                   __func__, marker);
+                   __func__, marker + 1);
       return 0;
     }
   }