| 2904 | } |
| 2905 | |
| 2906 | void 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 | { |
nothing calls this directly
no test coverage detected