Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9316362a
Commit
9316362a
authored
Nov 11, 2013
by
antirez
Browse files
Log to what master a slave is going to connect to.
parent
aecb6406
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
9316362a
...
...
@@ -795,7 +795,8 @@ void replicationCron(void) {
/* Check if we should connect to a MASTER */
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
)
{
redisLog
(
REDIS_NOTICE
,
"MASTER <-> SLAVE sync started"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment