Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
926beaa3
Commit
926beaa3
authored
Jan 16, 2018
by
antirez
Browse files
Hopefully more clear comment to explain the change in #4607.
parent
019ad3e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
926beaa3
...
...
@@ -1971,9 +1971,10 @@ void replicationUnsetMaster(void) {
* master switch. */
server
.
slaveseldb
=
-
1
;
/* We need to remember the time when we became a master and lost all
* attached slaves (if we had any), as after some time we'll free the
* replication backlog. */
/* Once we turn from slave to master, we consider the starting time without
* slaves (that is used to count the replication backlog time to live) as
* 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
;
}
...
...
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