Skip to content

Commit

Permalink
cs: serde_fields for offset_index_header
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 28, 2024
1 parent 47bf3ea commit 1c66ffc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/v/cloud_storage/remote_segment_index.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,28 @@ struct offset_index_header
int64_t last_time{model::timestamp::missing().value()};
std::vector<int64_t> time_write_buf;
iobuf time_index;

auto serde_fields() {
return std::tie(
min_file_pos_step,
num_elements,
base_rp,
last_rp,
base_kaf,
last_kaf,
base_file,
last_file,
rp_write_buf,
kaf_write_buf,
file_write_buf,
rp_index,
kaf_index,
file_index,
base_time,
last_time,
time_write_buf,
time_index);
}
};

iobuf offset_index::to_iobuf() {
Expand Down

0 comments on commit 1c66ffc

Please sign in to comment.