| 30 | Status RandomAccessCacheFile::Open() { return OpenImpl(); } |
| 31 | |
| 32 | Status RandomAccessCacheFile::OpenImpl() { |
| 33 | RandomAccessFile* file; |
| 34 | auto status = env_->NewRandomAccessFile(Path(), &file, env_opt_); |
| 35 | if (!status.ok()) { |
| 36 | LEVELDB_LOG("Error opening random access file %s. %s\n", Path().c_str(), |
| 37 | status.ToString().c_str()); |
| 38 | } else { |
| 39 | file_.reset(file); |
| 40 | } |
| 41 | |
| 42 | return status; |
| 43 | } |
| 44 | |
| 45 | Status RandomAccessCacheFile::Read(size_t offset, size_t length, Slice* val, |
| 46 | SstDataScratch* scratch) { |
nothing calls this directly
no test coverage detected