MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / FInternalKey

Function FInternalKey

src/storage/rocksdb.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15extern "C" pid_t gettid();
16
17bool FInternalKey(const char *key, size_t cch)
18{
19 if (cch >= sizeof(INTERNAL_KEY_PREFIX))
20 {
21 if (memcmp(key, keyprefix, sizeof(INTERNAL_KEY_PREFIX)-1) == 0)
22 return true;
23 }
24 return false;
25}
26
27std::string getPrefix(unsigned int hashslot)
28{

Callers 6

prefixKeyFunction · 0.85
enumerateMethod · 0.85
enumerate_hashslotMethod · 0.85
getEvictionCandidatesMethod · 0.85
createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected