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.
This commit is contained in:
Avi Kivity
2017-04-17 22:49:23 +03:00
parent ae7d7ae20f
commit ca69a04969

View File

@@ -90,7 +90,7 @@ struct send_info {
}
};
future<> do_send_mutations(auto si, auto fm, bool fragmented) {
future<> do_send_mutations(lw_shared_ptr<send_info> 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<send_info> si) {
return repeat([si] () {
return si->reader().then([si] (auto smopt) {
if (smopt && si->db.column_family_exists(si->cf_id)) {