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
b23927b2
Commit
b23927b2
authored
Jan 16, 2018
by
antirez
Browse files
Hopefully more clear comment to explain the change in #4607.
parent
0cc43760
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
b23927b2
...
@@ -1971,9 +1971,10 @@ void replicationUnsetMaster(void) {
...
@@ -1971,9 +1971,10 @@ void replicationUnsetMaster(void) {
* master switch. */
* master switch. */
server
.
slaveseldb
=
-
1
;
server
.
slaveseldb
=
-
1
;
/* We need to remember the time when we became a master and lost all
/* Once we turn from slave to master, we consider the starting time without
* attached slaves (if we had any), as after some time we'll free the
* slaves (that is used to count the replication backlog time to live) as
* replication backlog. */
* starting from now. Otherwise the backlog will be freed after a
* failover if slaves do not connect immediately. */
server
.
repl_no_slaves_since
=
server
.
unixtime
;
server
.
repl_no_slaves_since
=
server
.
unixtime
;
}
}
...
...
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