From ca69a049696f22e960fc205d456eafd7c8271a37 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 17 Apr 2017 22:49:23 +0300 Subject: [PATCH] streaming: avoid auto in function argument declaration 'auto' in a non-lambda function argument is not legal C++, and is hard to read besides. Replace with the right type. --- streaming/stream_transfer_task.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streaming/stream_transfer_task.cc b/streaming/stream_transfer_task.cc index fec39ec162..b66e164f38 100644 --- a/streaming/stream_transfer_task.cc +++ b/streaming/stream_transfer_task.cc @@ -90,7 +90,7 @@ struct send_info { } }; -future<> do_send_mutations(auto si, auto fm, bool fragmented) { +future<> do_send_mutations(lw_shared_ptr si, frozen_mutation fm, bool fragmented) { return get_local_stream_manager().mutation_send_limiter().wait().then([si, fragmented, fm = std::move(fm)] () mutable { sslog.debug("[Stream #{}] SEND STREAM_MUTATION to {}, cf_id={}", si->plan_id, si->id, si->cf_id); auto fm_size = fm.representation().size(); @@ -112,7 +112,7 @@ future<> do_send_mutations(auto si, auto fm, bool fragmented) { }); } -future<> send_mutations(auto si) { +future<> send_mutations(lw_shared_ptr si) { return repeat([si] () { return si->reader().then([si] (auto smopt) { if (smopt && si->db.column_family_exists(si->cf_id)) {