]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Get the correct initial value(pos) in raw_obj_to_obj function when zoneid contai... 41522/head
authorWeiGuo Ren <weiguo.ren@xtaotech.com>
Tue, 25 May 2021 08:08:33 +0000 (08:08 +0000)
committerWeiGuo Ren <weiguo.ren@xtaotech.com>
Fri, 25 Jun 2021 06:01:34 +0000 (06:01 +0000)
Signed-off-by: WeiGuo Ren <weiguo.ren@xtaotech.com>
src/rgw/services/svc_tier_rados.h

index f2424990e550a9b85e4115477214487df2341c67..b1366925545039f5b613ff0bd1f3b4641e196cc5 100644 (file)
@@ -129,7 +129,7 @@ public:
   }
 
   static inline bool raw_obj_to_obj(const rgw_bucket& bucket, const rgw_raw_obj& raw_obj, rgw_obj *obj) {
-    ssize_t pos = raw_obj.oid.find('_');
+    ssize_t pos = raw_obj.oid.find('_', bucket.marker.length());
     if (pos < 0) {
       return false;
     }