summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/account.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/driver/rados/account.cc')
-rw-r--r--src/rgw/driver/rados/account.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rgw/driver/rados/account.cc b/src/rgw/driver/rados/account.cc
index 02a26993227..fc881d07804 100644
--- a/src/rgw/driver/rados/account.cc
+++ b/src/rgw/driver/rados/account.cc
@@ -36,6 +36,7 @@ static constexpr std::string_view buckets_oid_prefix = "buckets.";
static constexpr std::string_view users_oid_prefix = "users.";
static constexpr std::string_view groups_oid_prefix = "groups.";
static constexpr std::string_view roles_oid_prefix = "roles.";
+static constexpr std::string_view topics_oid_prefix = "topics.";
static const std::string account_oid_prefix = "account.";
static constexpr std::string_view name_oid_prefix = "name.";
@@ -72,6 +73,14 @@ rgw_raw_obj get_roles_obj(const RGWZoneParams& zone,
return {zone.account_pool, get_roles_key(account_id)};
}
+static std::string get_topics_key(std::string_view account_id) {
+ return string_cat_reserve(topics_oid_prefix, account_id);
+}
+rgw_raw_obj get_topics_obj(const RGWZoneParams& zone,
+ std::string_view account_id) {
+ return {zone.account_pool, get_topics_key(account_id)};
+}
+
static std::string get_account_key(std::string_view account_id) {
return string_cat_reserve(account_oid_prefix, account_id);
}