Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller_backend::clear_orphan_topic_files: removed unused lambda & capture #11442

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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