summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_rest_conn.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2016-08-17 10:59:50 +0200
committerYehuda Sadeh <yehuda@redhat.com>2016-10-07 19:31:20 +0200
commitf1e9905617ade6028ac56c98387df07f36015db8 (patch)
tree02e19ac2b51ab93965be2329ded4eb2f0f16572c /src/rgw/rgw_rest_conn.cc
parentrgw: REST client, don't sign requests if empty key (diff)
downloadceph-f1e9905617ade6028ac56c98387df07f36015db8.tar.xz
ceph-f1e9905617ade6028ac56c98387df07f36015db8.zip
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 <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_conn.cc')
-rw-r--r--src/rgw/rgw_rest_conn.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rgw/rgw_rest_conn.cc b/src/rgw/rgw_rest_conn.cc
index 68228fbd66c..a95bc7323e4 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)