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

Function AfterFile

src/leveldb/db/version_set.cc:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static bool AfterFile(const Comparator* ucmp, const Slice* user_key,
109 const FileMetaData* f) {
110 // null user_key occurs before all keys and is therefore never after *f
111 return (user_key != nullptr &&
112 ucmp->Compare(*user_key, f->largest.user_key()) > 0);
113}
114
115static bool BeforeFile(const Comparator* ucmp, const Slice* user_key,
116 const FileMetaData* f) {

Callers 1

SomeFileOverlapsRangeFunction · 0.85

Calls 2

CompareMethod · 0.45
user_keyMethod · 0.45

Tested by

no test coverage detected