Skip to content
New issue

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

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

Already on GitHub? # to your account

aof 校验和机制如何证明 #2526

Open
fox-half-tian opened this issue Nov 8, 2024 · 1 comment
Open

aof 校验和机制如何证明 #2526

fox-half-tian opened this issue Nov 8, 2024 · 1 comment

Comments

@fox-half-tian
Copy link
Contributor

文章链接:Redis持久化机制详解 | JavaGuide
文中提到了 aof 校验和机制,但实际上,我在 redis 4.0 和 redis 6.0 的源码中,在服务启动阶段的代码里,都只找到了对 rdb 数据的 crc64 校验和检查,以及 redis.conf 中只有配置项 rdbchecksum。

还是说,这里的 aof 校验和机制是在以该 aof 文件是混合持久化模式下重写得到的?对 rdb 数据那部分的验证?

@Snailclimb
Copy link
Owner

我在 redis 4.0 和 redis 6.0 的源码中,在服务启动阶段的代码里,都只找到了对 rdb 数据的 crc64 校验和检查,以及 redis.conf 中只有配置项 rdbchecksum。

还是说,这里的 aof 校验和机制是在以该 aof 文件是混合持久化模式下重写得到的?对 rdb 数据那部分的验证?

是这样的,应该是我理解出错了。如果感兴趣的话,欢迎对这部分内容进行修正哈~

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

No branches or pull requests

2 participants