Skip to content

Commit

Permalink
Merge pull request redpanda-data#6568 from abhijat/fix-materialized-s…
Browse files Browse the repository at this point in the history
…egment-condition

cloud_storage: fix stale materialized segment gc logic when force gc is requested
  • Loading branch information
abhijat committed Sep 30, 2022
2 parents c2bd972 + 123aa3b commit 6126fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/cloud_storage/remote_partition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ void remote_partition::gc_stale_materialized_segments(bool force_collection) {
_segments.size());

auto now = ss::lowres_clock::now();
auto max_idle = force_collection ? stm_max_idle_time : 0ms;
auto max_idle = force_collection ? 0ms : stm_max_idle_time;

std::vector<model::offset> offsets;
for (auto& st : _materialized) {
Expand Down

0 comments on commit 6126fde

Please sign in to comment.