]> git.saurik.com Git - redis.git/blobdiff - src/rdb.c
forward-ported changes in zmalloc.c/h to support jemalloc build
[redis.git] / src / rdb.c
index a2471aef63da2a78efe830574a2f4fdf30c8fce4..f98d85798c69a5064f03f10c0b3ff2d64f633009 100644 (file)
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -430,7 +430,7 @@ int rdbSave(char *filename) {
         redisDb *db = server.db+j;
         dict *d = db->dict;
         if (dictSize(d) == 0) continue;
-        di = dictGetIterator(d);
+        di = dictGetSafeIterator(d);
         if (!di) {
             fclose(fp);
             return REDIS_ERR;