]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_client_io.h
update sources to v12.2.4
[ceph.git] / ceph / src / rgw / rgw_client_io.h
index 8579b2383526956dee5774136cf2786b8d6c9121..55ec6386bd8037f17c8dc0494aabd742f741855c 100644 (file)
@@ -28,13 +28,13 @@ using Exception = std::system_error;
  * interacted with. */
 class BasicClient {
 protected:
-  virtual void init_env(CephContext *cct) = 0;
+  virtual int init_env(CephContext *cct) = 0;
 
 public:
   virtual ~BasicClient() = default;
 
   /* Initialize the BasicClient and inject CephContext. */
-  void init(CephContext *cct);
+  int init(CephContext *cct);
 
   /* Return the RGWEnv describing the environment that a given request lives in.
    * The method does not throw exceptions. */
@@ -197,7 +197,7 @@ protected:
     decoratee = &new_dec;
   }
 
-  void init_env(CephContext *cct) override {
+  int init_env(CephContext *cct) override {
     return get_decoratee().init_env(cct);
   }