Skip to content

Commit

Permalink
rgw:fix for deleting objects name beginning and ending with underscor…
Browse files Browse the repository at this point in the history
…es of one bucket using POST method of AWS's js sdk.

Fixes: http://tracker.ceph.com/issues/17888

Signed-off-by: zhouruisong 236131368@qq.com
  • Loading branch information
root committed Nov 24, 2016
1 parent ddcb4a9 commit 2dda81d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_op.cc
Expand Up @@ -5202,7 +5202,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);

Expand Down

0 comments on commit 2dda81d

Please sign in to comment.