| 209 | }; |
| 210 | |
| 211 | static Iterator* GetFileIterator(void* arg, const ReadOptions& options, |
| 212 | const Slice& file_value) { |
| 213 | TableCache* cache = reinterpret_cast<TableCache*>(arg); |
| 214 | if (file_value.size() != 16) { |
| 215 | return NewErrorIterator( |
| 216 | Status::Corruption("FileReader invoked with unexpected value")); |
| 217 | } else { |
| 218 | return cache->NewIterator(options, DecodeFixed64(file_value.data()), |
| 219 | DecodeFixed64(file_value.data() + 8)); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | Iterator* Version::NewConcatenatingIterator(const ReadOptions& options, |
| 224 | int level) const { |
nothing calls this directly
no test coverage detected