Skip to content

Commit

Permalink
storage: expose disk_log_builder::feature_table
Browse files Browse the repository at this point in the history
This will be useful to test methods that need a feature table (e.g.
deduplicate_segments() has a feature table as an argument).

(cherry picked from commit 958aaf7)
  • Loading branch information
andrwng committed Mar 7, 2024
1 parent 565dc15 commit 0dad371
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/v/storage/tests/utils/disk_log_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ class disk_log_builder {

void set_time(model::timestamp t) { _ts_cursor = t; }

ss::sharded<features::feature_table>& feature_table() {
return _feature_table;
}

private:
template<typename Consumer>
auto consume_impl(Consumer c, log_reader_config config) {
Expand Down

0 comments on commit 0dad371

Please sign in to comment.