]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: 'bucket check' deletes index of multipart meta when its pending_map is noempty 47228/head
authorHuber-ming <zhangsm01@inspur.com>
Fri, 22 Jul 2022 06:18:13 +0000 (14:18 +0800)
committerHuber-ming <zhangsm01@inspur.com>
Fri, 22 Jul 2022 06:18:13 +0000 (14:18 +0800)
Signed-off-by: Huber-ming <zhangsm01@inspur.com>
src/rgw/rgw_rados.cc

index 2bbec2b1fbdf31aad6ead6bc1c7a6baf569b697b..a3f424cb4cd146889f54d0d9c99057ff2b30ae01 100644 (file)
@@ -9223,6 +9223,11 @@ int RGWRados::check_disk_state(const DoutPrefixProvider *dpp,
   std::string loc;
 
   std::unique_ptr<rgw::sal::Object> obj = bucket->get_object(list_state.key);
+  MultipartMetaFilter multipart_meta_filter;
+  string temp_key;
+  if (multipart_meta_filter.filter(list_state.key.name, temp_key)) {
+    obj->set_in_extra_data(true);
+  }
 
   string oid;
   get_obj_bucket_and_oid_loc(obj->get_obj(), oid, loc);