| 909 | } |
| 910 | |
| 911 | void 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 | |
| 926 | void expireEntryFat::expireSubKey(const char *szSubkey, long long when) |
| 927 | { |
nothing calls this directly
no test coverage detected