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:
Raphael S. Carvalho
2016-01-19 17:45:36 -02:00
committed by Pekka Enberg
parent bd34adcf22
commit c318f3baa3

View File

@@ -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));
}
}