]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix reset_loc() 4996/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 17 Jun 2015 22:11:28 +0000 (15:11 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 17 Jun 2015 22:33:50 +0000 (15:33 -0700)
Fixes: #11974
Only need to set locator for underscore if namespace is empty

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_common.h

index 3d849ce05a2824326f93eca82d5ff2b77614494a..668d9afe22e3eb1397ba003af13603a483428bcd 100644 (file)
@@ -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;
     }
   }