From: Sage Weil Date: Sun, 12 Aug 2018 20:26:41 +0000 (-0500) Subject: rgw: remove auid member from RGWUserInfo X-Git-Tag: v14.0.1~431^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b700f0fbfdb36f546026a74e5eb7a058e9be8188;p=ceph-ci.git rgw: remove auid member from RGWUserInfo Unused. Signed-off-by: Sage Weil --- diff --git a/doc/install/install-ceph-gateway.rst b/doc/install/install-ceph-gateway.rst index 92479b2800f..9825380f14a 100644 --- a/doc/install/install-ceph-gateway.rst +++ b/doc/install/install-ceph-gateway.rst @@ -375,7 +375,6 @@ The output of the command will be something like the following:: "email": "", "suspended": 0, "max_buckets": 1000, - "auid": 0, "subusers": [], "keys": [{ "user": "testuser", @@ -436,7 +435,6 @@ The output will be something like the following:: "email": "", "suspended": 0, "max_buckets": 1000, - "auid": 0, "subusers": [{ "id": "testuser:swift", "permissions": "full-control" @@ -480,7 +478,6 @@ The output will be something like the following:: "email": "", "suspended": 0, "max_buckets": 1000, - "auid": 0, "subusers": [{ "id": "testuser:swift", "permissions": "full-control" diff --git a/doc/radosgw/admin.rst b/doc/radosgw/admin.rst index 809014f3c24..c32158e29c1 100644 --- a/doc/radosgw/admin.rst +++ b/doc/radosgw/admin.rst @@ -56,7 +56,6 @@ For example:: "email": "john@example.com", "suspended": 0, "max_buckets": 1000, - "auid": 0, "subusers": [], "keys": [ { "user": "johndoe", @@ -109,7 +108,6 @@ For example:: "email": "john@example.com", "suspended": 0, "max_buckets": 1000, - "auid": 0, "subusers": [ { "id": "johndoe:swift", "permissions": "full-control"}], diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index b1462839d3e..f3a0ed928d0 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -621,7 +621,6 @@ enum RGWUserSourceType struct RGWUserInfo { - uint64_t auid; rgw_user user_id; string display_name; string user_email; @@ -643,8 +642,7 @@ struct RGWUserInfo set mfa_ids; RGWUserInfo() - : auid(0), - suspended(0), + : suspended(0), max_buckets(RGW_DEFAULT_MAX_BUCKETS), op_mask(RGW_OP_TYPE_ALL), admin(0), @@ -661,7 +659,7 @@ struct RGWUserInfo void encode(bufferlist& bl) const { ENCODE_START(20, 9, bl); - encode(auid, bl); + encode((uint64_t)0, bl); // old auid string access_key; string secret_key; if (!access_keys.empty()) { @@ -706,8 +704,10 @@ struct RGWUserInfo } void decode(bufferlist::const_iterator& bl) { DECODE_START_LEGACY_COMPAT_LEN_32(20, 9, 9, bl); - if (struct_v >= 2) decode(auid, bl); - else auid = CEPH_AUTH_UID_DEFAULT; + if (struct_v >= 2) { + uint64_t old_auid; + decode(old_auid, bl); + } string access_key; string secret_key; decode(access_key, bl); diff --git a/src/rgw/rgw_dencoder.cc b/src/rgw/rgw_dencoder.cc index 891d66141cf..6073f7fa237 100644 --- a/src/rgw/rgw_dencoder.cc +++ b/src/rgw/rgw_dencoder.cc @@ -404,7 +404,6 @@ void RGWSubUser::generate_test_instances(list& o) void RGWUserInfo::generate_test_instances(list& o) { RGWUserInfo *i = new RGWUserInfo; - i->auid = 1; i->user_id = "user_id"; i->display_name = "display_name"; i->user_email = "user@email"; diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 0c85a574968..04d11f4d73d 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -457,8 +457,6 @@ void RGWUserInfo::dump(Formatter *f) const encode_json("suspended", (int)suspended, f); encode_json("max_buckets", (int)max_buckets, f); - encode_json("auid", auid, f); - encode_json_map("subusers", NULL, "subuser", NULL, user_info_dump_subuser,(void *)this, subusers, f); encode_json_map("keys", NULL, "key", NULL, user_info_dump_key,(void *)this, access_keys, f); encode_json_map("swift_keys", NULL, "key", NULL, user_info_dump_swift_key,(void *)this, swift_keys, f); @@ -535,7 +533,6 @@ void RGWUserInfo::decode_json(JSONObj *obj) JSONDecoder::decode_json("suspended", susp, obj); suspended = (__u8)susp; JSONDecoder::decode_json("max_buckets", max_buckets, obj); - JSONDecoder::decode_json("auid", auid, obj); JSONDecoder::decode_json("keys", access_keys, decode_access_keys, obj); JSONDecoder::decode_json("swift_keys", swift_keys, decode_swift_keys, obj);