Skip to content

Commit

Permalink
Merge pull request #12320: jewel: rgw:fix for deleting objects name b…
Browse files Browse the repository at this point in the history
…eginning and ending with underscores of one bucket using POST method of js sdk.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Dec 5, 2016
2 parents 733e913 + 820ab7d commit b5d307c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_op.cc
Expand Up @@ -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(iter->instance);

obj_ctx->set_atomic(obj);

Expand Down

0 comments on commit b5d307c

Please sign in to comment.