Skip to content

Commit

Permalink
storage: add compaction functions to log_manager_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemKauf committed Feb 11, 2025
1 parent 4a7875b commit bf83297
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/v/storage/tests/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,14 @@ class log_manager_accessor {
static batch_cache& batch_cache(storage::log_manager& m) {
return m._batch_cache;
}

static ss::future<> housekeeping_scan(storage::log_manager& m) {
return m.housekeeping_scan(m.lowest_ts_to_retain());
}

static storage::log_manager::compaction_list_type&
logs_list(storage::log_manager& m) {
return m._logs_list;
}
};
} // namespace storage::testing_details

0 comments on commit bf83297

Please sign in to comment.