MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetFileIterator

Function GetFileIterator

src/leveldb/db/version_set.cc:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209};
210
211static 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
223Iterator* Version::NewConcatenatingIterator(const ReadOptions& options,
224 int level) const {

Callers

nothing calls this directly

Calls 6

NewErrorIteratorFunction · 0.85
CorruptionFunction · 0.85
DecodeFixed64Function · 0.85
sizeMethod · 0.45
NewIteratorMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected