From ae80742013b0098f967f18a83afa5e2ae2011330 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Thu, 22 Oct 2015 11:41:21 +0200 Subject: [PATCH] rgw: use default zone in case there is no period or zone name Signed-off-by: Orit Wasserman --- src/rgw/rgw_rados.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 748bd376619b0..6fe8c8a001426 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2993,6 +2993,9 @@ int RGWRados::init_complete() } if (!has_period_zone) { + if (cct->_conf->rgw_zone.empty()) { + zone_params.set_name(default_zone_name); + } ret = zone_params.init(cct, this); if (ret < 0 && ret != -ENOENT) { lderr(cct) << "failed reading zone info: ret "<< ret << " " << cpp_strerror(-ret) << dendl; -- 2.39.5