]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: role: modify store_name & path
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 13 Oct 2020 12:42:42 +0000 (14:42 +0200)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 6 Jun 2022 10:49:42 +0000 (16:19 +0530)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_role.cc
src/rgw/rgw_role.h

index 35161e2bcacf771178d53fb66af53a200811cfb0..1de0d46bac0d78520f611fb05ac8539b1b3d9aa5 100644 (file)
@@ -44,6 +44,29 @@ int RGWRole::store_info(const DoutPrefixProvider *dpp, bool exclusive, optional_
                              set_exclusive(exclusive));
 }
 
+int RGWRole::store_name(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y)
+{
+  return role_ctl->store_name(id,
+                             name,
+                             tenant,
+                             y,
+            dpp,
+                             RGWRoleCtl::PutParams().
+                             set_exclusive(exclusive)
+                             );
+}
+
+int RGWRole::store_path(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y)
+{
+  return role_ctl->store_path(id,
+                             path,
+                             tenant,
+                             y,
+            dpp,
+                             RGWRoleCtl::PutParams().
+                             set_exclusive(exclusive));
+}
+
 int RGWRole::get(const DoutPrefixProvider *dpp, optional_yield y)
 {
   int ret = read_name(dpp, y);
index 0332159ab5611f2041be9bc59301be67eb9a513b..0369305aee3c33f13b38f31e22306e1239ec6d1a 100644 (file)
@@ -49,8 +49,8 @@ protected:
 
 public:
   virtual int store_info(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y);
-  virtual int store_name(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y) = 0;
-  virtual int store_path(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y) = 0;
+  virtual int store_name(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y);
+  virtual int store_path(const DoutPrefixProvider *dpp, bool exclusive, optional_yield y);
   virtual int read_id(const DoutPrefixProvider *dpp, const std::string& role_name, const std::string& tenant, std::string& role_id, optional_yield y) = 0;
   virtual int read_name(const DoutPrefixProvider *dpp, optional_yield y) = 0;
   virtual int read_info(const DoutPrefixProvider *dpp, optional_yield y) = 0;