]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: only scan for objects not in namespace
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 26 Jun 2015 20:49:55 +0000 (13:49 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 27 Jun 2015 00:07:02 +0000 (17:07 -0700)
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>
src/rgw/rgw_admin.cc

index b6fdd1ccca627ebd422ff2faf2a8de12d75b555d..2409fe5c20058958e4ca05e74021e912f6c8cce3 100644 (file)
@@ -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");