]> 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)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 15:54:42 +0000 (17:54 +0200)
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>
(cherry picked from commit 8103908548bf7d6c9fa47fb181cd450670bae8d6)

src/rgw/rgw_admin.cc

index 832417a0f07a1617393fc8923ea451e851683522..7cf3126a2687de5f1c54141236c7f6425557c438 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");