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

Method storeDatabase

src/db.cpp:2906–2917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2904}
2905
2906void redisDbPersistentData::storeDatabase()
2907{
2908 dictIterator *di = dictGetIterator(m_pdict);
2909 dictEntry *de;
2910 while ((de = dictNext(di)) != NULL) {
2911 sds key = (sds)dictGetKey(de);
2912 robj *o = (robj*)dictGetVal(de);
2913 storeKey(key, o, false);
2914 }
2915 serverAssert(dictSize(m_pdict) == m_spstorage->count());
2916 dictReleaseIterator(di);
2917}
2918
2919/* static */ void redisDbPersistentData::serializeAndStoreChange(StorageCache *storage, redisDbPersistentData *db, const char *key, bool fUpdate)
2920{

Callers

nothing calls this directly

Calls 4

dictGetIteratorFunction · 0.70
dictNextFunction · 0.70
dictReleaseIteratorFunction · 0.70
countMethod · 0.45

Tested by

no test coverage detected