Skip to content

Commit

Permalink
rgw: bucket index check in radosgw-admin removes valid index.
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/18470

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
  • Loading branch information
Zhang Shaowen committed Jan 10, 2017
1 parent 59c0108 commit 50766ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_bucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ int RGWBucket::check_bad_index_multipart(RGWBucketAdminOpState& op_state,
int max = 1000;

map<string, bool> common_prefixes;
string ns = "";
string ns = "multipart";

bool is_truncated;
map<string, bool> meta_objs;
Expand All @@ -1024,6 +1024,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;

do {
vector<RGWObjEnt> result;
Expand Down

0 comments on commit 50766ec

Please sign in to comment.