diff options
Diffstat (limited to 'src/rgw/rgw_bucket_types.h')
-rw-r--r-- | src/rgw/rgw_bucket_types.h | 7 |
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; } |