From: Yehuda Sadeh Date: Thu, 5 Feb 2015 17:33:26 +0000 (-0800) Subject: rgw: send appropriate op to cancel bucket index pending operation X-Git-Tag: v0.80.10~44^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3938%2Fhead;p=ceph.git rgw: send appropriate op to cancel bucket index pending operation Fixes: #10770 Backport: firefly, giant Reported-by: baijiaruo Signed-off-by: Yehuda Sadeh (cherry picked from commit dfee96e3aebcaeef18c721ab73f0460eba69f1c7) Conflicts: src/rgw/rgw_rados.cc --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 52f8a701f2d..858c67ef33f 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5954,7 +5954,7 @@ int RGWRados::cls_obj_complete_cancel(rgw_bucket& bucket, string& tag, string& n { RGWObjEnt ent; ent.name = name; - return cls_obj_complete_op(bucket, CLS_RGW_OP_ADD, tag, -1 /* pool id */, 0, ent, RGW_OBJ_CATEGORY_NONE, NULL); + return cls_obj_complete_op(bucket, CLS_RGW_OP_CANCEL, tag, -1 /* pool id */, 0, ent, RGW_OBJ_CATEGORY_NONE, NULL); } int RGWRados::cls_obj_set_bucket_tag_timeout(rgw_bucket& bucket, uint64_t timeout)