From 9aab560840b6ebf67b3dbc5ac721fdf359300c51 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 29 Mar 2016 17:22:59 +0200 Subject: [PATCH] rgw: rgw_user can be now explicitly initialized with tenant and ID. Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_basic_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_basic_types.h b/src/rgw/rgw_basic_types.h index 00ad16e50aa7c..3c93e883bf79b 100644 --- a/src/rgw/rgw_basic_types.h +++ b/src/rgw/rgw_basic_types.h @@ -14,6 +14,10 @@ struct rgw_user { rgw_user(const std::string& s) { from_str(s); } + rgw_user(const std::string& tenant, const std::string& id) + : tenant(tenant), + id(id) { + } void encode(bufferlist& bl) const { ENCODE_START(1, 1, bl); -- 2.39.5