]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: parse old rgw_obj with namespace correctly 20566/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Feb 2018 18:18:08 +0000 (10:18 -0800)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 23 Feb 2018 15:17:10 +0000 (16:17 +0100)
Fixes: http://tracker.ceph.com/issues/22982
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit c598e53c95ec09772353a12e9162464ccb76e0a8)

src/rgw/rgw_common.h

index 9d6e4049600a2880ece679add07070077742af9d..d857edbd4bcf2492ddb516fb5dc7e6b64d665b68 100644 (file)
@@ -2045,7 +2045,7 @@ struct rgw_obj {
           if (pos < 0) {
             throw buffer::error();
           }
-          key.name = key.name.substr(pos);
+          key.name = key.name.substr(pos + 1);
         }
       }
     } else {