summaryrefslogtreecommitdiff
path: root/src/replication.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-09-28 10:47:45 +0200
committerantirez <antirez@gmail.com>2015-10-01 13:02:26 +0200
commitc69c6c80fb5376a30e8cda34443a55b6326c9aa7 (patch)
treee2bf663000f90c754c9b995c3b15218ba59e9243 /src/replication.c
parentb08c36c5f2e635a128f2a306b6f38a0159ed56e6 (diff)
downloadredis-c69c6c80fb5376a30e8cda34443a55b6326c9aa7.tar.gz
Lazyfree: ability to free whole DBs in background.
Diffstat (limited to 'src/replication.c')
-rw-r--r--src/replication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c
index 7ab646362..5a61f4d99 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -1111,7 +1111,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
}
serverLog(LL_NOTICE, "MASTER <-> SLAVE sync: Flushing old data");
signalFlushedDb(-1);
- emptyDb(replicationEmptyDbCallback);
+ emptyDb(-1,EMPTYDB_NO_FLAGS,replicationEmptyDbCallback);
/* Before loading the DB into memory we need to delete the readable
* handler, otherwise it will get called recursively since
* rdbLoad() will call the event loop to process events from time to