Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于replication的疑问 #43

Open
dk021212 opened this issue Aug 29, 2018 · 0 comments
Open

关于replication的疑问 #43

dk021212 opened this issue Aug 29, 2018 · 0 comments

Comments

@dk021212
Copy link

想请教一下大神关于redis源码中replication.c文件的feedReplicationBacklog方法。
这个方法中,server.repl_backlog_off到底是什么意思。既然有了server.master_repl_offset表示全局的偏移量,为什么还要有server.repl_backlog_off。而且为什么一定要满足以下公式:
server.repl_backlog_off = server.master_repl_offset - server.repl_backlog_histlen + 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant