]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix suffix in RGWZoneParams::fix_pool_names()
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 25 Apr 2016 22:09:47 +0000 (15:09 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 25 Apr 2016 22:12:40 +0000 (15:12 -0700)
Fixes: http://tracker.ceph.com/issues/15598
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
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;