Skip to content

Commit

Permalink
rgw: role/svc cosmetic comments & ws cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
  • Loading branch information
theanalyst authored and pritha-srivastava committed Jun 6, 2022
1 parent 846a0e4 commit d8c2a89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/rgw/rgw_role.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ class RGWRoleMetadataHandler: public RGWMetadataHandler_GenericMetaBE
bool from_remote_zone) override;
};

/// Defines control classes that call the low level service layer that handles
/// storage, svc classes implement the low level object operations. Ctl classes
/// can span over multiple service classes, for eg. User Ctl classes need to
/// update the user indices when buckets are added/removed RoleCtl classes may
/// need to update the RGW Account class that a role has been added deleted
/// under an account.
class RGWRoleCtl {
struct Svc {
RGWSI_Role *role {nullptr};
Expand Down
10 changes: 5 additions & 5 deletions src/rgw/services/svc_role.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RGWSI_Role: public RGWServiceInstance

virtual int read_info(RGWSI_MetaBackend::Context *ctx,
const std::string& role_id,
rgw::sal::RGWRole *role,
rgw::sal::RGWRole *role, // out param
RGWObjVersionTracker * const objv_tracker,
real_time * const pmtime,
std::map<std::string, bufferlist> * pattrs,
Expand Down Expand Up @@ -122,10 +122,10 @@ class RGWSI_Role: public RGWServiceInstance
const DoutPrefixProvider *dpp) = 0;

virtual int list_roles_by_path_prefix(RGWSI_MetaBackend::Context *ctx,
const std::string& path,
const std::string& tenant,
std::vector<rgw::sal::RGWRole>& roles,
optional_yield y,
const std::string& path,
const std::string& tenant,
std::vector<rgw::sal::RGWRole>& roles, // out param
optional_yield y,
const DoutPrefixProvider *dpp) = 0;

};
Expand Down

0 comments on commit d8c2a89

Please sign in to comment.