summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-02-08 10:26:19 +0100
committerantirez <antirez@gmail.com>2013-02-08 10:27:26 +0100
commit63ad0e88672cfcd1735119448cf8c5bf30c32956 (patch)
tree6840727400b82c9ff9d22bfcef16615118db0eee
parentd5d0b467dbafe4d549b3460a511e4ac48747e12f (diff)
downloadredis-63ad0e88672cfcd1735119448cf8c5bf30c32956.tar.gz
Make all WATCHers dirty when the slave reloads the DB.
-rw-r--r--src/replication.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c
index c12692ce2..2eca8fa9d 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