diff --git a/src/expire.c b/src/expire.c index 85fd59fe2..cac208573 100644 --- a/src/expire.c +++ b/src/expire.c @@ -64,7 +64,7 @@ int activeExpireCycleTryExpire(redisDb *db, dictEntry *de, long long now) { dbSyncDelete(db,keyobj); notifyKeyspaceEvent(NOTIFY_EXPIRED, "expired",keyobj,db->id); - trackingInvalidateKey(NULL,keyobj); + signalModifiedKey(NULL, db, keyobj); decrRefCount(keyobj); server.stat_expiredkeys++; return 1; diff --git a/tests/unit/multi.tcl b/tests/unit/multi.tcl index 817d509c5..e45a2d8f4 100644 --- a/tests/unit/multi.tcl +++ b/tests/unit/multi.tcl @@ -221,7 +221,7 @@ start_server {tags {"multi"}} { r exec } {} - test {WATCH will not consider touched expired keys} { + test {WATCH will consider touched expired keys} { r del x r set x foo r expire x 1 @@ -230,7 +230,7 @@ start_server {tags {"multi"}} { r multi r ping r exec - } {PONG} + } {} test {DISCARD should clear the WATCH dirty flag on the client} { r watch x