]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: Add log types to dencoder
authorTom Coldrick <tcoldrick@bloomberg.com>
Wed, 16 Nov 2022 07:51:41 +0000 (02:51 -0500)
committerTom Coldrick <tcoldrick@bloomberg.com>
Wed, 17 May 2023 09:33:27 +0000 (10:33 +0100)
commit7b2a0504d4e9ac67f7de268a94d9b486885db076
tree8b0712e8b0191964ba917dcb49e39ccae27c0d1f
parentaf3682ffd858d3678ede83075e5188117278c934
rgw: Add log types to dencoder

When debugging an issue in RGW multisite replication, we discovered that we had
no way to deserialise data stored in the logs (in particular the datalog) when
attempting to look inside the RADOS objects and work out what's going on. This
commit adds the types to ceph-dencoder, to facilitate future efforts at
debugging. As a bonus, this also allows serialisation for these types to be
tested.

Adds the following types to ceph-dencoder:

- RGWMetadataLogData
- rgw_data_change
- cls_log_entry

Signed-off-by: Tom Coldrick <tcoldrick@bloomberg.com>
src/cls/log/cls_log_types.h
src/rgw/driver/rados/rgw_datalog.cc
src/rgw/driver/rados/rgw_datalog.h
src/rgw/rgw_mdlog.h
src/rgw/rgw_metadata.cc
src/tools/ceph-dencoder/rgw_types.h