]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: 'bucket check' deletes index of multipart meta when its pending_map is noempty 54016/head
authorHuber-ming <zhangsm01@inspur.com>
Fri, 22 Jul 2022 06:18:13 +0000 (14:18 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 17 Oct 2023 12:15:05 +0000 (19:15 +0700)
Signed-off-by: Huber-ming <zhangsm01@inspur.com>
(cherry picked from commit 67fc2bd386fe6224b2abd92a0b043ccfcca50ae7)

Conflicts:
  - path: src/rgw/rgw_rados.cc
    comment: manually resolve conflicts

src/rgw/rgw_rados.cc

index 4b1cb1c45e2a00c65ab943da5378d676e983fcc9..6555c2f637034a8ca629d3e77b07bd373197e8c7 100644 (file)
@@ -9159,6 +9159,11 @@ int RGWRados::check_disk_state(const DoutPrefixProvider *dpp,
   std::string loc;
 
   rgw_obj obj(bucket, 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, oid, loc);