From: Yehuda Sadeh Date: Mon, 25 Apr 2016 22:09:47 +0000 (-0700) Subject: rgw: fix suffix in RGWZoneParams::fix_pool_names() X-Git-Tag: v11.0.0~815^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8746%2Fhead;p=ceph.git rgw: fix suffix in RGWZoneParams::fix_pool_names() Fixes: http://tracker.ceph.com/issues/15598 Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 47ba96261c17..6b4ece733c9a 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1416,7 +1416,7 @@ string fix_zone_pool_name(set 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;