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
33cbdac1
Commit
33cbdac1
authored
May 27, 2020
by
antirez
Browse files
Revert "PSYNC2: fix backlog_idx when adjusting for meaningful offset"
This reverts commit
97f1c808
.
parent
62441004
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
33cbdac1
...
...
@@ -2816,9 +2816,6 @@ void replicationCacheMasterUsingMyself(void) {
delta);
server.master_initial_offset = server.master_repl_meaningful_offset;
server.repl_backlog_histlen -= delta;
server
.
repl_backlog_idx
=
(
server
.
repl_backlog_idx
+
(
server
.
repl_backlog_size
-
delta
))
%
server
.
repl_backlog_size
;
if (server.repl_backlog_histlen < 0) server.repl_backlog_histlen = 0;
}
...
...
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