]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: remove auid member from RGWUserInfo
authorSage Weil <sage@redhat.com>
Sun, 12 Aug 2018 20:26:41 +0000 (15:26 -0500)
committerSage Weil <sage@redhat.com>
Fri, 31 Aug 2018 20:54:58 +0000 (15:54 -0500)
Unused.

Signed-off-by: Sage Weil <sage@redhat.com>
doc/install/install-ceph-gateway.rst
doc/radosgw/admin.rst
src/rgw/rgw_common.h
src/rgw/rgw_dencoder.cc
src/rgw/rgw_json_enc.cc

index 92479b2800f0006dbb0119595dd12b08b63e899c..9825380f14a30e5f93dd0eef6ea381e4d8b2d027 100644 (file)
@@ -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"
index 809014f3c24dfeb16ea971b4fa6187b270ab05d0..c32158e29c1ce583a98314cfa13a811e147347fb 100644 (file)
@@ -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"}],
index b1462839d3e27f53fb1ff742060778cf6bc1ba2a..f3a0ed928d03729f944e6244d9e6ca6cf88ab849 100644 (file)
@@ -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<string> 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);
index 891d66141cffaf949ca6a37406fdb33c07495127..6073f7fa237f0dcf903918f56121093ebcbf6034 100644 (file)
@@ -404,7 +404,6 @@ void RGWSubUser::generate_test_instances(list<RGWSubUser*>& o)
 void RGWUserInfo::generate_test_instances(list<RGWUserInfo*>& o)
 {
   RGWUserInfo *i = new RGWUserInfo;
-  i->auid = 1;
   i->user_id = "user_id";
   i->display_name =  "display_name";
   i->user_email = "user@email";
index 0c85a5749686920a63b14c662ef9b9b6e1083a1a..04d11f4d73d1504ca67054d61c757622bf72753e 100644 (file)
@@ -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);