Skip to content

Commit

Permalink
Merge pull request redpanda-data#11442 from andijcr/smallfix/controll…
Browse files Browse the repository at this point in the history
…er_backend

controller_backend::clear_orphan_topic_files: removed unused lambda & capture
  • Loading branch information
piyushredpanda authored Jun 16, 2023
2 parents 09362e0 + 78bc531 commit e13a04d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/v/cluster/controller_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ ss::future<std::error_code> controller_backend::force_replica_set_update(
* or it's revision is less than revision it topic table
* And it's revision is less than topic table snapshot revision
*/
bool topic_files_are_orphan(
static bool topic_files_are_orphan(
const model::ntp& ntp,
storage::partition_path::metadata ntp_directory_data,
const absl::flat_hash_map<model::ntp, model::revision_id>&
Expand Down Expand Up @@ -718,8 +718,7 @@ ss::future<> controller_backend::clear_orphan_topic_files(
return _storage.local().log_mgr().remove_orphan_files(
_data_directory,
std::move(namespaces),
[&,
bootstrap_revision,
[bootstrap_revision,
topic_table_snapshot = std::move(topic_table_snapshot)](
model::ntp ntp, storage::partition_path::metadata p) {
return topic_files_are_orphan(
Expand Down

0 comments on commit e13a04d

Please sign in to comment.