summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_bucket_types.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-23 16:45:44 +0000
commit17d6a993fc17d533460c5f40f3908c708e057c18 (patch)
tree1a3bd93e0ecd74fa02f93a528fe2f87e5314c4b5 /src/rgw/rgw_bucket_types.h
parentReleasing progress-linux version 18.2.2-0progress7.99u1. (diff)
downloadceph-17d6a993fc17d533460c5f40f3908c708e057c18.tar.xz
ceph-17d6a993fc17d533460c5f40f3908c708e057c18.zip
Merging upstream version 18.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/rgw/rgw_bucket_types.h')
-rw-r--r--src/rgw/rgw_bucket_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rgw/rgw_bucket_types.h b/src/rgw/rgw_bucket_types.h
index 61acc58bb..52ac5dc34 100644
--- a/src/rgw/rgw_bucket_types.h
+++ b/src/rgw/rgw_bucket_types.h
@@ -136,6 +136,13 @@ struct rgw_bucket {
DECODE_FINISH(bl);
}
+ std::string get_namespaced_name() const {
+ if (tenant.empty()) {
+ return name;
+ }
+ return tenant + std::string("/") + name;
+ }
+
void update_bucket_id(const std::string& new_bucket_id) {
bucket_id = new_bucket_id;
}