Repository navigation
Conversation
redis-persistence.md 写的是“Redis 4.0-6.x 需手动开启,Redis 7.0+ 默认启用”, 与 Redis 源码不符:aof-use-rdb-preamble 在 4.0 默认为 no,从 5.0 起默认为 yes。 - redis/redis 提交 28d28ef3cf0f(2018-03-25,AOF: enable RDB-preamble rewriting by default)把 redis.conf 中的默认值由 no 改为 yes,并把 src/server.h 中的 CONFIG_DEFAULT_AOF_USE_RDB_PREAMBLE 由 0 改为 1,随 5.0 发布 - redis.conf:4.0.0 和 4.0.14 为 aof-use-rdb-preamble no, 5.0.0、6.0.0、7.0.0 均为 yes - 本仓库 distributed-id.md 已有正确说法:4.0 默认关闭,5.0+ 默认开启 同步修正该文件中三处相同的表述。
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
docs/database/redis/redis-persistence.md中写的是“混合持久化:Redis 4.0-6.x 需手动开启,Redis 7.0+ 默认启用”(共 3 处),与 Redis 源码不符。aof-use-rdb-preamble在 Redis 4.0 默认是no,从 5.0 起默认就是yes,7.0 并没有改过默认值。本仓库docs/distributed-system/distributed-id.md里已经是正确说法(“Redis 4.0 示例配置默认关闭,Redis 5.0+ 示例配置默认开启”),两篇文章互相矛盾。依据
redis.conf中aof-use-rdb-preamble no改为yes,src/server.h中CONFIG_DEFAULT_AOF_USE_RDB_PREAMBLE由 0 改为 1。redis.conf:4.0.14 是no;5.0.0、6.0.0、7.0.0 都是yes。src/server.h第 142 行为 0,5.0.0src/server.h第 145 行为 1,6.0.0src/config.c第 2111 行、7.0.0src/config.c第 2924 行的默认值均为 1。改动
只改同一说法出现的 3 处(开头的版本差异列表、配置示例注释、“版本差异”小节),把“4.0-6.x 默认关闭 / 7.0+ 默认启用”改为“4.0 默认关闭 / 5.0+ 默认启用”,共 4 行。
说明:本 PR 在 AI 助手(Claude)协助下完成;上述依据已对照 Redis 源码和各版本
redis.conf核对过。