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

Function BeforeFile

src/leveldb/db/version_set.cc:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static bool BeforeFile(const Comparator* ucmp, const Slice* user_key,
116 const FileMetaData* f) {
117 // null user_key occurs after all keys and is therefore never before *f
118 return (user_key != nullptr &&
119 ucmp->Compare(*user_key, f->smallest.user_key()) < 0);
120}
121
122bool SomeFileOverlapsRange(const InternalKeyComparator& icmp,
123 bool disjoint_sorted_files,

Callers 1

SomeFileOverlapsRangeFunction · 0.85

Calls 2

CompareMethod · 0.45
user_keyMethod · 0.45

Tested by

no test coverage detected