Skip to content

redis AOF重写描述不准确 #1436

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

Merged
merged 3 commits into from
Nov 6, 2021
Merged

redis AOF重写描述不准确 #1436

merged 3 commits into from
Nov 6, 2021

Conversation

xjlgod
Copy link
Contributor

@xjlgod xjlgod commented Nov 1, 2021

原文为
服务器会将重写缓冲区中的所有内容追加到新 AOF 文件的末尾,使得新旧两个 AOF 文件所保存的数据库状态一致。最后,服务器用新的 AOF 文件替换旧的 AOF 文件,以此来完成 AOF 文件重写操作。
如果新旧两个 AOF 文件所保存的数据库状态一致,为什么还需要替换呢?我不知道我的理解是否正确,谢谢大佬抽空review。
然后还有个地方装箱和拆箱写反了。

@Snailclimb Snailclimb merged commit b919dff into Snailclimb:master Nov 6, 2021
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

Successfully merging this pull request may close these issues.

2 participants