From 8103908548bf7d6c9fa47fb181cd450670bae8d6 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 26 Jun 2015 13:49:55 -0700 Subject: [PATCH] rgw: only scan for objects not in namespace Fixes: #11984 The tool should only work on the head objects, and these are not inside any namespace. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index b6fdd1ccca627..2409fe5c20058 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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"); -- 2.39.5