From f1e9905617ade6028ac56c98387df07f36015db8 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 17 Aug 2016 01:59:50 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_rest_conn.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_rest_conn.cc b/src/rgw/rgw_rest_conn.cc index 68228fbd66cd2..a95bc7323e423 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) -- 2.39.5