]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: using RGW_OBJ_NS_MULTIPART in check_bad_index_multipart 15774/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 20 Jun 2017 09:01:10 +0000 (17:01 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Tue, 20 Jun 2017 09:01:10 +0000 (17:01 +0800)
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_bucket.cc

index 97ddb192c2d08dc546083a2f7c5f000b61a2ec9c..2301b65a6ef76c77431336e8c7531957e417ad8e 100644 (file)
@@ -994,7 +994,6 @@ int RGWBucket::check_bad_index_multipart(RGWBucketAdminOpState& op_state,
 
   map<string, bool> common_prefixes;
 
-  string ns = "multipart";
   bool is_truncated;
   map<string, bool> meta_objs;
   map<rgw_obj_index_key, string> all_objs;
@@ -1011,7 +1010,7 @@ int RGWBucket::check_bad_index_multipart(RGWBucketAdminOpState& op_state,
   RGWRados::Bucket::List list_op(&target);
 
   list_op.params.list_versions = true;
-  list_op.params.ns = ns;
+  list_op.params.ns = RGW_OBJ_NS_MULTIPART;
 
   do {
     vector<rgw_bucket_dir_entry> result;