mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 17:21:20 +00:00
Log to what master a slave is going to connect to.
This commit is contained in:
@ -1499,7 +1499,8 @@ void replicationCron(void) {
|
|||||||
|
|
||||||
/* Check if we should connect to a MASTER */
|
/* Check if we should connect to a MASTER */
|
||||||
if (server.repl_state == REDIS_REPL_CONNECT) {
|
if (server.repl_state == REDIS_REPL_CONNECT) {
|
||||||
redisLog(REDIS_NOTICE,"Connecting to MASTER...");
|
redisLog(REDIS_NOTICE,"Connecting to MASTER %s:%d",
|
||||||
|
server.masterhost, server.masterport);
|
||||||
if (connectWithMaster() == REDIS_OK) {
|
if (connectWithMaster() == REDIS_OK) {
|
||||||
redisLog(REDIS_NOTICE,"MASTER <-> SLAVE sync started");
|
redisLog(REDIS_NOTICE,"MASTER <-> SLAVE sync started");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user