Skip to content

Commit

Permalink
Merge pull request #17254 from vbotbuildovich/backport-pr-17019-v23.2…
Browse files Browse the repository at this point in the history
….x-862

[v23.2.x] storage: mutex compaction and prefix truncation
  • Loading branch information
piyushredpanda authored Mar 23, 2024
2 parents 3bd926f + ed42887 commit 3126ca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/storage/disk_log_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,8 @@ ss::future<> disk_log_impl::do_truncate_prefix(truncate_prefix_config cfg) {
* whose max offset falls below the new starting offset.
*/
{
ssx::semaphore_units seg_rewrite_units
= co_await _segment_rewrite_lock.get_units();
auto cache_lock = co_await _readers_cache->evict_prefix_truncate(
cfg.start_offset);
co_await remove_prefix_full_segments(cfg);
Expand Down

0 comments on commit 3126ca8

Please sign in to comment.