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 疑问 #110

Closed
KaniuBillows opened this issue Nov 16, 2022 · 7 comments
Closed

Replication 疑问 #110

KaniuBillows opened this issue Nov 16, 2022 · 7 comments

Comments

@KaniuBillows
Copy link
Contributor

在阅读主从同步相关代码的时候,saleof命令执行后,会异步与master进行连接建立,并且会对master发送 REPLCONF listening-port命令,但是我好像并没有在代码中找到这个REPLCONF的实现。是目前不支持嘛?

我又用redis-cli直接执行了 REPLCONF
得到:
(error) ERR unknown command 'replconf'

想知道为啥会这样呢?

@HDT3213
Copy link
Owner

HDT3213 commented Nov 16, 2022

还没写 master 端😂, 正看着 redis 源码犯愁呢

@HDT3213
Copy link
Owner

HDT3213 commented Nov 16, 2022

可以拿一个 redis 做 master, 是可以跑通的

@KaniuBillows
Copy link
Contributor Author

psync 是否也是不完整的?我看现在也没有偏移量,只会 psync ? -1 进行完整同步

@HDT3213
Copy link
Owner

HDT3213 commented Nov 16, 2022

@HDT3213
Copy link
Owner

HDT3213 commented Nov 18, 2022

部分重同步也弄好了

@HDT3213
Copy link
Owner

HDT3213 commented Dec 14, 2022

现在主从基本完工了,还有很多细节需要慢慢完善

@KaniuBillows
Copy link
Contributor Author

幸苦啦,让我学一学

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

2 participants