From c318f3baa36e56f823a59cd7c4f378da13e96326 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Tue, 19 Jan 2016 17:45:36 -0200 Subject: [PATCH] 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 Message-Id: <56ece21ff6e043e224eb2a6e76cdd422b94821b0.1453232689.git.raphaelsc@scylladb.com> --- sstables/sstables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sstables/sstables.cc b/sstables/sstables.cc index d2d8b82dc2..4cbb33e1d3 100644 --- a/sstables/sstables.cc +++ b/sstables/sstables.cc @@ -1570,7 +1570,7 @@ input_stream 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)); } }