]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_client_io.cc
update sources to v12.2.4
[ceph.git] / ceph / src / rgw / rgw_client_io.cc
index dd116c427a8e3a3ccb95db09f5b8075a077285fc..39434628644d6271c6cc9da90c02e1adf736d8c9 100644 (file)
 namespace rgw {
 namespace io {
 
-void BasicClient::init(CephContext *cct) {
-  init_env(cct);
+int BasicClient::init(CephContext *cct) {
+  int init_error = init_env(cct);
+
+  if (init_error != 0)
+    return init_error;
 
   if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
     const auto& env_map = get_env().get_map();
@@ -24,6 +27,7 @@ void BasicClient::init(CephContext *cct) {
       ldout(cct, 20) << iter.first << "=" << (x) << dendl;
     }
   }
+  return init_error;
 }
 
 } /* namespace io */