]> git.saurik.com Git - redis.git/commitdiff
propagate key eviction to slaves and AOF, like for expires, so that replicas and...
authorantirez <antirez@gmail.com>
Thu, 27 Jan 2011 15:52:37 +0000 (16:52 +0100)
committerantirez <antirez@gmail.com>
Thu, 27 Jan 2011 15:52:37 +0000 (16:52 +0100)
src/redis.c

index 367c667df6e22d015e5067233f71fdbf30eb97b8..5548d1cf826ccf383aeb81f97c74ce9b9cc902d2 100644 (file)
@@ -1564,6 +1564,7 @@ void freeMemoryIfNeeded(void) {
             /* Finally remove the selected key. */
             if (bestkey) {
                 robj *keyobj = createStringObject(bestkey,sdslen(bestkey));
+                propagateExpire(db,keyobj);
                 dbDelete(db,keyobj);
                 server.stat_evictedkeys++;
                 decrRefCount(keyobj);