From a6c2f9012fb3668a583a84db4fb6e0c5b42d757a Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 8 Feb 2013 10:26:19 +0100 Subject: [PATCH] Make all WATCHers dirty when the slave reloads the DB. --- src/replication.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/replication.c b/src/replication.c index 3819c8859..a6abd0b94 100644 --- a/src/replication.c +++ b/src/replication.c @@ -427,6 +427,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) { return; } redisLog(REDIS_NOTICE, "MASTER <-> SLAVE sync: Loading DB in memory"); + signalFlushedDb(-1); emptyDb(); /* Before loading the DB into memory we need to delete the readable * handler, otherwise it will get called recursively since