]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix suffix in RGWZoneParams::fix_pool_names() 9029/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 25 Apr 2016 22:09:47 +0000 (15:09 -0700)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 10 May 2016 09:07:39 +0000 (11:07 +0200)
Fixes: http://tracker.ceph.com/issues/15598
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 6f6b0c925994b0369eda390a6b3fd20005e70c9b)

src/rgw/rgw_rados.cc

index 47ba96261c17d5dbe5c760e53fccd465d4fee15d..6b4ece733c9ab5e1549682c598b259eaf1ccaeb9 100644 (file)
@@ -1416,7 +1416,7 @@ string fix_zone_pool_name(set<string> pool_names,
 
   if (!suggested_name.empty()) {
     prefix = suggested_name.substr(0,suggested_name.find("."));
-    suffix = suggested_name.substr(prefix.length(), suggested_name.length() - 1);
+    suffix = suggested_name.substr(prefix.length());
   }
 
   string name = prefix + suffix;