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
8dd01736
Commit
8dd01736
authored
May 27, 2020
by
antirez
Browse files
Revert "Clarify what is happening in PR #7320."
This reverts commit
92a3ff61
.
parent
325409a0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
8dd01736
...
...
@@ -2547,11 +2547,7 @@ void replicationUnsetMaster(void) {
/* When a slave is turned into a master, the current replication ID
* (that was inherited from the master at synchronization time) is
* used as secondary ID up to the current offset, and a new replication
* ID is created to continue with a new replication history.
*
* NOTE: this function MUST be called after we call
* freeClient(server.master), since there we adjust the replication
* offset trimming the final PINGs. See Github issue #7320. */
* ID is created to continue with a new replication history. */
shiftReplicationId
();
/* Disconnecting all the slaves is required: we need to inform slaves
* of the replication ID change (see shiftReplicationId() call). However
...
...
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