diff options
author | Casey Bodley <cbodley@redhat.com> | 2024-02-11 18:15:41 +0100 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2024-04-10 19:09:16 +0200 |
commit | 3683a4097fc42f514c5310fc2078d7ef8e0561eb (patch) | |
tree | 6d78e98db506efcad11abb9bc9a26356a9c87a2d /src/rgw/rgw_common.h | |
parent | rgw: add struct RGWGroupInfo (diff) | |
download | ceph-3683a4097fc42f514c5310fc2078d7ef8e0561eb.tar.xz ceph-3683a4097fc42f514c5310fc2078d7ef8e0561eb.zip |
rgw/sal: add backend interfaces for group metadata
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r-- | src/rgw/rgw_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index aad3cef5915..f8ca6988e78 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -22,6 +22,8 @@ #include <unordered_map> #include <fmt/format.h> +#include <boost/container/flat_map.hpp> +#include <boost/container/flat_set.hpp> #include "common/ceph_crypto.h" #include "common/random_string.h" @@ -596,6 +598,7 @@ struct RGWUserInfo std::string path = "/"; ceph::real_time create_date; std::multimap<std::string, std::string> tags; + boost::container::flat_set<std::string, std::less<>> group_ids; RGWUserInfo() : suspended(0), @@ -667,6 +670,7 @@ struct RGWUserInfo encode(path, bl); encode(create_date, bl); encode(tags, bl); + encode(group_ids, bl); ENCODE_FINISH(bl); } void decode(bufferlist::const_iterator& bl) { @@ -762,6 +766,7 @@ struct RGWUserInfo decode(path, bl); decode(create_date, bl); decode(tags, bl); + decode(group_ids, bl); } else { path = "/"; } |