projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be86082
)
propagate key eviction to slaves and AOF, like for expires, so that replicas and...
author
antirez
<antirez@gmail.com>
Thu, 27 Jan 2011 15:52:37 +0000
(16:52 +0100)
committer
antirez
<antirez@gmail.com>
Thu, 27 Jan 2011 15:52:37 +0000
(16:52 +0100)
src/redis.c
patch
|
blob
|
blame
|
history
diff --git
a/src/redis.c
b/src/redis.c
index 367c667df6e22d015e5067233f71fdbf30eb97b8..5548d1cf826ccf383aeb81f97c74ce9b9cc902d2 100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-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);