From: Yehuda Sadeh Date: Wed, 12 Feb 2014 00:54:05 +0000 (-0800) Subject: rgw: multi object delete should be idempotent X-Git-Tag: v0.67.8~50 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ae335298b85daba5125a3da4ad26d598c76ecab;p=ceph.git rgw: multi object delete should be idempotent Fixes: #7346 When doing a multi object delete, if an object does not exist then we should return a success code for that object. Signed-off-by: Yehuda Sadeh (cherry picked from commit 8ca3d95bf633ea9616852cec74f02285a03071d5) Conflicts: src/rgw/rgw_op.cc --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 25af50fe2386..c9601f90dbbc 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2538,6 +2538,9 @@ void RGWDeleteMultiObj::execute() rgw_obj obj(bucket,(*iter)); store->set_atomic(s->obj_ctx, obj); ret = store->delete_obj(s->obj_ctx, obj); + if (ret == -ENOENT) { + ret = 0; + } result = make_pair(*iter, ret); send_partial_response(result);