From: Yehuda Sadeh Date: Wed, 17 Aug 2016 08:59:50 +0000 (-0700) Subject: rgw: allow null store in RGWRESTConn X-Git-Tag: v11.1.0~681^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1e9905617ade6028ac56c98387df07f36015db8;p=ceph.git rgw: allow null store in RGWRESTConn We're not necessarily going to connect to rgw/s3 endpoints, we only need store param to handle s3 signing. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rest_conn.cc b/src/rgw/rgw_rest_conn.cc index 68228fbd66cd..a95bc7323e42 100644 --- a/src/rgw/rgw_rest_conn.cc +++ b/src/rgw/rgw_rest_conn.cc @@ -13,8 +13,10 @@ RGWRESTConn::RGWRESTConn(CephContext *_cct, RGWRados *store, endpoints(remote_endpoints.begin(), remote_endpoints.end()), remote_id(_remote_id) { - key = store->get_zone_params().system_key; - self_zone_group = store->get_zonegroup().get_id(); + if (store) { + key = store->get_zone_params().system_key; + self_zone_group = store->get_zonegroup().get_id(); + } } int RGWRESTConn::get_url(string& endpoint)