]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: send appropriate op to cancel bucket index pending operation 4048/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 5 Feb 2015 17:33:26 +0000 (09:33 -0800)
committerLoic Dachary <ldachary@redhat.com>
Tue, 17 Mar 2015 16:56:09 +0000 (17:56 +0100)
Fixes: #10770
Backport: firefly, giant

Reported-by: baijiaruo <baijiaruo@126.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit dfee96e3aebcaeef18c721ab73f0460eba69f1c7)

Conflicts:
src/rgw/rgw_rados.cc
        resolved by manual s/ADD/CANCEL/

src/rgw/rgw_rados.cc

index 709deefe5215c4ed9701b824091a6877772ee163..cbd30e7a736a57efcb2282cbdabd28d826333ef6 100644 (file)
@@ -6039,7 +6039,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)