Skip to content

Commit

Permalink
rgw: only scan for objects not in namespace
Browse files Browse the repository at this point in the history
Fixes: #11984
The tool should only work on the head objects, and these are not inside
any namespace.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Jun 27, 2015
1 parent fb6f271 commit 8103908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_admin.cc
Expand Up @@ -991,7 +991,7 @@ int do_check_object_locator(const string& bucket_name, bool fix, bool remove_bad
list_op.params.delim = delim;
list_op.params.marker = rgw_obj_key(marker);
list_op.params.ns = ns;
list_op.params.enforce_ns = false;
list_op.params.enforce_ns = true;
list_op.params.list_versions = true;

f->open_array_section("check_objects");
Expand Down

0 comments on commit 8103908

Please sign in to comment.