diff --git a/db/commitlog/commitlog_replayer.cc b/db/commitlog/commitlog_replayer.cc index 288759f99f..1cb6d43bf3 100644 --- a/db/commitlog/commitlog_replayer.cc +++ b/db/commitlog/commitlog_replayer.cc @@ -164,7 +164,7 @@ future<> db::commitlog_replayer::impl::init() { // Get all truncation records for the CF and initialize max rps if // present. Cannot do this on demand, as there may be no sstables to // mark the CF as "needed". - return db::system_keyspace::get_truncated_position(uuid).then([&map, &uuid](std::vector tpps) { + return db::system_keyspace::get_truncated_position(uuid).then([&map, uuid](std::vector tpps) { for (auto& p : tpps) { rlogger.trace("CF {} truncated at {}", uuid, p); auto& pp = map[p.shard_id()][uuid];