mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Log empty DB + Loading data into two separated messages.
This commit is contained in:
parent
7c531eb5ad
commit
2c4ab8a534
@ -794,7 +794,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
replicationAbortSyncTransfer();
|
replicationAbortSyncTransfer();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
redisLog(REDIS_NOTICE, "MASTER <-> SLAVE sync: Loading DB in memory");
|
redisLog(REDIS_NOTICE, "MASTER <-> SLAVE sync: Flushing old data");
|
||||||
signalFlushedDb(-1);
|
signalFlushedDb(-1);
|
||||||
emptyDb();
|
emptyDb();
|
||||||
/* Before loading the DB into memory we need to delete the readable
|
/* Before loading the DB into memory we need to delete the readable
|
||||||
@ -802,6 +802,7 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
* rdbLoad() will call the event loop to process events from time to
|
* rdbLoad() will call the event loop to process events from time to
|
||||||
* time for non blocking loading. */
|
* time for non blocking loading. */
|
||||||
aeDeleteFileEvent(server.el,server.repl_transfer_s,AE_READABLE);
|
aeDeleteFileEvent(server.el,server.repl_transfer_s,AE_READABLE);
|
||||||
|
redisLog(REDIS_NOTICE, "MASTER <-> SLAVE sync: Loading DB in memory");
|
||||||
if (rdbLoad(server.rdb_filename) != REDIS_OK) {
|
if (rdbLoad(server.rdb_filename) != REDIS_OK) {
|
||||||
redisLog(REDIS_WARNING,"Failed trying to load the MASTER synchronization DB from disk");
|
redisLog(REDIS_WARNING,"Failed trying to load the MASTER synchronization DB from disk");
|
||||||
replicationAbortSyncTransfer();
|
replicationAbortSyncTransfer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user