From 557865c85bb907fe69248c4f1acb88320a7c1bb5 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 (cherry picked from commit d3bd27f4855df6bb207b656527138026af1a36a2) --- 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 e1688ee369914..6c7912bd983c7 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -1230,7 +1230,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