From 21388f4a87a4cd5c48013f8300e66a2dac4ceeae Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 29 Nov 2022 10:11:03 -0500 Subject: [PATCH] rgw: initialize rgw_log_entry::identity_type 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 (cherry picked from commit cd99af0760bf973d44bacb55767f26ec7a975912) Conflicts: src/rgw/rgw_log.h namespace std --- src/rgw/rgw_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 591f6c48964bd..5813b442438a9 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -95,7 +95,7 @@ struct rgw_log_entry { headers_map x_headers; string trans_id; std::vector token_claims; - uint32_t identity_type; + uint32_t identity_type = TYPE_NONE; std::string access_key_id; std::string subuser; bool temp_url {false}; -- 2.39.5