]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: skip add empty multipart chain to gc in abort_multipart_upload 30511/head
authorTianshan Qu <tianshan@xsky.com>
Mon, 23 Sep 2019 08:05:58 +0000 (16:05 +0800)
committerTianshan Qu <tianshan@xsky.com>
Thu, 30 Jan 2020 14:09:18 +0000 (22:09 +0800)
Fixes: https://tracker.ceph.com/issues/41953
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_rados.cc

index 7de83bd8144d48d95d03547b2c197944298994eb..53ff0714c1b04e844c77559e64b4e056118be2ef 100644 (file)
@@ -4656,6 +4656,10 @@ void RGWRados::update_gc_chain(rgw_obj& head_obj, RGWObjManifest& manifest, cls_
 
 int RGWRados::send_chain_to_gc(cls_rgw_obj_chain& chain, const string& tag)
 {
+  if (chain.empty()) {
+    return 0;
+  }
+
   return gc->send_chain(chain, tag);
 }