mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
sstables: fix sstable::data_stream_at
After 63967db8, offset is ignored when creating a input stream.
Found the problem after sstable_test failed recently.
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
Message-Id: <56ece21ff6e043e224eb2a6e76cdd422b94821b0.1453232689.git.raphaelsc@scylladb.com>
This commit is contained in:
committed by
Pekka Enberg
parent
bd34adcf22
commit
c318f3baa3
@@ -1570,7 +1570,7 @@ input_stream<char> sstable::data_stream_at(uint64_t pos, uint64_t buf_size) {
|
||||
} else {
|
||||
file_input_stream_options options;
|
||||
options.buffer_size = buf_size;
|
||||
return make_file_input_stream(_data_file, 0, std::move(options));
|
||||
return make_file_input_stream(_data_file, pos, std::move(options));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user