diff --git a/db/commitlog/commitlog.cc b/db/commitlog/commitlog.cc index 52e38270ae..6e1ab35214 100644 --- a/db/commitlog/commitlog.cc +++ b/db/commitlog/commitlog.cc @@ -718,7 +718,7 @@ subscription> db::commitlog::read_log_file(file f, commit size_t next = 0; bool eof = false; bool header = true; - work(file f) : f(std::move(f)), fin(make_file_input_stream(f)) {} + work(file f) : f(f), fin(make_file_input_stream(f)) {} }; auto w = make_lw_shared(std::move(f));