diff --git a/table/block_based_table_reader.cc b/table/block_based_table_reader.cc index 08c3f2055..6ffb8280a 100644 --- a/table/block_based_table_reader.cc +++ b/table/block_based_table_reader.cc @@ -617,13 +617,13 @@ void BlockBasedTable::SetupForCompaction() { case Options::NONE: break; case Options::NORMAL: - rep_->file->Hint(RandomAccessFile::NORMAL); + rep_->file->file()->Hint(RandomAccessFile::NORMAL); break; case Options::SEQUENTIAL: - rep_->file->Hint(RandomAccessFile::SEQUENTIAL); + rep_->file->file()->Hint(RandomAccessFile::SEQUENTIAL); break; case Options::WILLNEED: - rep_->file->Hint(RandomAccessFile::WILLNEED); + rep_->file->file()->Hint(RandomAccessFile::WILLNEED); break; default: assert(false); diff --git a/util/file_reader_writer.h b/util/file_reader_writer.h index f33965dc6..4134a0ea2 100644 --- a/util/file_reader_writer.h +++ b/util/file_reader_writer.h @@ -46,7 +46,7 @@ class SequentialFileReader { SequentialFile* file() { return file_.get(); } }; -class RandomAccessFileReader : public RandomAccessFile { +class RandomAccessFileReader { private: std::unique_ptr file_; Env* env_;