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
0cc43760
Unverified
Commit
0cc43760
authored
Jan 16, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 16, 2018
Browse files
Merge pull request #4607 from oranagra/psync2_backlog
PSYNC2 fix - promoted slave should hold on to it's backlog
parents
1b8eec3e
689b64c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
0cc43760
...
...
@@ -1970,6 +1970,11 @@ void replicationUnsetMaster(void) {
* with PSYNC version 2, there is no need for full resync after a
* 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. */
server
.
repl_no_slaves_since
=
server
.
unixtime
;
}
/* This function is called when the slave lose the connection with the
...
...
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