Merge pull request #11982 from zhouruisong/master

rgw:bugfix for deleting objects name beginning and ending with underscores of one bucket using POST method of AWS's js sdk.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-11-25 17:30:44 +01:00 committed by GitHub
commit a8e359f116

View File

@ -5239,7 +5239,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);