commitlog: use read ahead for replay requests

Aside from putting the requests in the commitlog class, read ahead
will help us going through the file faster.

Signed-off-by: Glauber Costa <glauber@scylladb.com>
(cherry picked from commit 59a41cf7f1)
This commit is contained in:
Glauber Costa
2016-11-17 14:09:17 -05:00
committed by Tomasz Grabiec
parent 58504bda5b
commit 38e78bb8a2

View File

@@ -1561,7 +1561,7 @@ db::commitlog::read_log_file(file f, commit_load_reader_func next, position_type
file_input_stream_options make_file_input_stream_options() {
file_input_stream_options fo;
fo.buffer_size = db::commitlog::segment::default_size;
fo.read_ahead = 0;
fo.read_ahead = 10;
fo.io_priority_class = service::get_local_commitlog_priority();
return fo;
}