Permalink
Browse files

Redis 2.2.111-scripting

  • Loading branch information...
antirez committed Jun 22, 2011
2 parents 9920bc9 + a2d68e6 commit 03fb0314e3bf06a265b48ede32047063d3a651f4
Showing with 11 additions and 3 deletions.
  1. +8 −0 00-RELEASENOTES
  2. +1 −1 src/aof.c
  3. +1 −1 src/rdb.c
  4. +1 −1 src/version.h
View
@@ -12,6 +12,14 @@ for 2.0.
CHANGELOG
---------
+What's new in Redis 2.2.11
+==========================
+
+* Solved a never reported but possibly critical bug in the AOF and RDB
+persistence, introduced with the new version of the iterator: In very rare
+circumstances the AOF (after rerwite) or the rdb file may contain the same
+key more than one time.
+
What's new in Redis 2.2.10
==========================
View
@@ -348,7 +348,7 @@ int rewriteAppendOnlyFile(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;
View
@@ -427,7 +427,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;
View
@@ -1 +1 @@
-#define REDIS_VERSION "2.2.110"
+#define REDIS_VERSION "2.2.111"

0 comments on commit 03fb031

Please sign in to comment.