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

Method createIndex

src/expire.cpp:911–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911void expireEntryFat::createIndex()
912{
913 serverAssert(m_dictIndex == nullptr);
914 m_dictIndex = dictCreate(&dbExpiresDictType, nullptr);
915
916 for (auto &entry : m_vecexpireEntries)
917 {
918 if (entry.spsubkey != nullptr)
919 {
920 dictEntry *de = dictAddRaw(m_dictIndex, (void*)entry.spsubkey.get(), nullptr);
921 de->v.s64 = entry.when;
922 }
923 }
924}
925
926void expireEntryFat::expireSubKey(const char *szSubkey, long long when)
927{

Callers

nothing calls this directly

Calls 3

dictAddRawFunction · 0.85
dictCreateFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected