]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:fix for deleting objects name beginning and ending with underscores of one bucket...
authorroot <root@korea-fg-ceph-57-117.120.120.117>
Mon, 14 Nov 2016 02:41:26 +0000 (10:41 +0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 5 Dec 2016 14:56:26 +0000 (15:56 +0100)
Fixes: http://tracker.ceph.com/issues/17888
Signed-off-by: zhouruisong 236131368@qq.com
(cherry picked from commit 2dda81d1e7057353c64aecaeadeb48d956c77a87)

src/rgw/rgw_op.cc

index 2da2129dd4ffee0c88adc33bd4ad18b9a3fb41e0..79e244a1f558a7dbd92843b39b9a10d08c23cc99 100644 (file)
@@ -4449,7 +4449,8 @@ void RGWDeleteMultiObj::execute()
   for (iter = multi_delete->objects.begin();
         iter != multi_delete->objects.end() && num_processed < max_to_delete;
         ++iter, num_processed++) {
-    rgw_obj obj(bucket, *iter);
+    rgw_obj obj(bucket, (*iter).name);
+    obj.set_instance(s->object.instance);
 
     obj_ctx->set_atomic(obj);