From: Casey Bodley Date: Tue, 3 Oct 2023 19:25:04 +0000 (-0400) Subject: rgw: add rgw_bucket() ctor for tenant+name X-Git-Tag: v19.0.0~122^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b7947debc41dea83f8bd6304ac6ecf82ca6ae10;p=ceph.git rgw: add rgw_bucket() ctor for tenant+name this avoids the need to construct a temporary rgw_bucket_key just to construct a rgw_bucket without an instance id Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_bucket_types.h b/src/rgw/rgw_bucket_types.h index 52ac5dc34bd1..ea379678ebe3 100644 --- a/src/rgw/rgw_bucket_types.h +++ b/src/rgw/rgw_bucket_types.h @@ -61,6 +61,9 @@ struct rgw_bucket { const std::string& _bucket_id) : tenant(_tenant), name(_name), bucket_id(_bucket_id) {} + rgw_bucket(const std::string& _tenant, + const std::string& _name) + : tenant(_tenant), name(_name) {} rgw_bucket(const rgw_bucket_key& bk) : tenant(bk.tenant), name(bk.name), bucket_id(bk.bucket_id) {}