From cc2d1e6100081aaca300ade51617294a37d33b9f Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 1 Dec 2016 13:53:44 -0500 Subject: [PATCH] rgw: fix for versioned delete_multi_object Fixes: http://tracker.ceph.com/issues/17888 Signed-off-by: Casey Bodley --- src/rgw/rgw_op.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 54838d8732777..9c6bd34c29200 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -5242,8 +5242,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).name); - obj.set_instance(s->object.instance); + rgw_obj obj(bucket, iter->name); + obj.set_instance(iter->instance); obj_ctx->set_atomic(obj);