]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: allow null store in RGWRESTConn
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 17 Aug 2016 08:59:50 +0000 (01:59 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 7 Oct 2016 17:31:20 +0000 (10:31 -0700)
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>
src/rgw/rgw_rest_conn.cc

index 68228fbd66cd26d4a6f6455bbcc1857bdf2e4b88..a95bc7323e423d77d2125fece7cf761aee83f3db 100644 (file)
@@ -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)