mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
commitlog: Fix use-after-move
"f" was passed to make_file_input_stream() after it was moved-from.
This commit is contained in:
committed by
Avi Kivity
parent
3d867fc808
commit
e416e800c8
@@ -718,7 +718,7 @@ subscription<temporary_buffer<char>> 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<work>(std::move(f));
|
||||
|
||||
Reference in New Issue
Block a user