]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove RGWUserInfo::assumed_role_arn 51481/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Apr 2023 13:32:08 +0000 (09:32 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 15 May 2023 13:37:06 +0000 (09:37 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit af5f9cabb90e574c6fab33f1c9273cc868c6da22)

src/rgw/rgw_common.h

index 9695335ba1a10eceda00e8ddbd92d966041d6aef..fcd869ac17fd54b2674340c3aad85b2b71bc8dcb 100644 (file)
@@ -559,7 +559,6 @@ struct RGWUserInfo
   RGWQuota quota;
   uint32_t type;
   std::set<std::string> mfa_ids;
-  std::string assumed_role_arn;
 
   RGWUserInfo()
     : suspended(0),
@@ -624,7 +623,10 @@ struct RGWUserInfo
      encode(admin, bl);
      encode(type, bl);
      encode(mfa_ids, bl);
-     encode(assumed_role_arn, bl);
+     {
+       std::string assumed_role_arn; // removed
+       encode(assumed_role_arn, bl);
+     }
      encode(user_id.ns, bl);
      ENCODE_FINISH(bl);
   }
@@ -708,6 +710,7 @@ struct RGWUserInfo
       decode(mfa_ids, bl);
     }
     if (struct_v >= 21) {
+      std::string assumed_role_arn; // removed
       decode(assumed_role_arn, bl);
     }
     if (struct_v >= 22) {