From e49805b7b82d389717565583ef22f5446aba80a1 Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Thu, 2 Apr 2020 10:21:41 +0200 Subject: [PATCH] db,view: remove unneeded implicit capture-by-reference The lambda does not use any other captures, so it does not to implicitly capture anything by reference. --- db/view/view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/view/view.cc b/db/view/view.cc index 41edc67ef6..014cdcf65f 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -1368,7 +1368,7 @@ future<> view_builder::calculate_shard_build_step( // Shard 0 makes cleanup changes to the system tables, but none that could conflict // with the other shards; everyone is thus able to proceed independently. auto bookkeeping_ops = std::make_unique>>(); - auto base_table_exists = [&, this] (const view_ptr& view) { + auto base_table_exists = [this] (const view_ptr& view) { // This is a safety check in case this node missed a create MV statement // but got a drop table for the base, and another node didn't get the // drop notification and sent us the view schema.