]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: parse old rgw_obj with namespace correctly 20586/head
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 13 Feb 2018 18:18:08 +0000 (10:18 -0800)
committerPrashant D <pdhange@redhat.com>
Mon, 26 Feb 2018 04:58:35 +0000 (23:58 -0500)
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 fdb50af632accd77fe0f590ae1077f59da5cc54b..40bc5d9ce7e49310facb741cec90f3982ef09b3a 100644 (file)
@@ -2046,7 +2046,7 @@ struct rgw_obj {
           if (pos < 0) {
             throw buffer::error();
           }
-          key.name = key.name.substr(pos);
+          key.name = key.name.substr(pos + 1);
         }
       }
     } else {