Skip to content

Commit

Permalink
c/test: serde_fields for archival_metadata_stm_test
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed Aug 29, 2024
1 parent b0a0003 commit fd06016
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/v/cluster/archival/tests/archival_metadata_stm_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,19 @@ struct segment
model::initial_revision_id ntp_revision_deprecated;
cloud_storage::segment_name name;
cloud_storage::partition_manifest::segment_meta meta;

auto serde_fields() {
return std::tie(ntp_revision_deprecated, name, meta);
}
};

struct snapshot
: public serde::
envelope<snapshot, serde::version<0>, serde::compat_version<0>> {
/// List of segments
std::vector<segment> segments;

auto serde_fields() { return std::tie(segments); }
};

} // namespace old
Expand Down

0 comments on commit fd06016

Please sign in to comment.