From d3bd27f4855df6bb207b656527138026af1a36a2 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 17 Jun 2015 15:11:28 -0700 Subject: [PATCH] rgw: fix reset_loc() Fixes: #11974 Only need to set locator for underscore if namespace is empty Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 3d849ce05a282..668d9afe22e3e 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -1234,7 +1234,7 @@ public: * having object locator at all for most objects but the ones that started with underscore as * these were escaped. */ - if (orig_obj[0] == '_') { + if (orig_obj[0] == '_' && ns.empty()) { loc = orig_obj; } } -- 2.39.5