]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize rgw_log_entry::identity_type 50184/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 29 Nov 2022 15:11:03 +0000 (10:11 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 20 Feb 2023 21:09:09 +0000 (16:09 -0500)
uninitialized identity_type field was causing unit test failures from
check-generated.sh:

**** rgw_log_entry test 2 dump_json check failed ****
   ceph-dencoder type rgw_log_entry select_test 2 dump_json > /tmp/typ-AW7AEODB3
   ceph-dencoder type rgw_log_entry select_test 2 encode decode dump_json > /tmp/typ-0NX4cmLHR
21c21
<     "identity_type": 3599295712
---
>     "identity_type": 2072560864

Fixes: https://tracker.ceph.com/issues/58115
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit cd99af0760bf973d44bacb55767f26ec7a975912)

src/rgw/rgw_log.h

index d23e598e3cd6c7e341e0345c6b7d9ef01eba4241..14159f2384716b68a31224472c1c4ce446b3ae7d 100644 (file)
@@ -102,7 +102,7 @@ struct rgw_log_entry {
   headers_map x_headers;
   std::string trans_id;
   std::vector<std::string> token_claims;
-  uint32_t identity_type;
+  uint32_t identity_type = TYPE_NONE;
   std::string access_key_id;
   std::string subuser;
   bool temp_url {false};