fix(sync): 适配 rdb-only 复制请求#1052
Merged
Merged
Conversation
Assisted-by: Codex:gpt-5.5
Assisted-by: Codex:gpt-5.5
Assisted-by: Codex:gpt-5.5
suxb201
requested changes
May 19, 2026
Assisted-by: Codex:gpt-5.5
suxb201
approved these changes
May 19, 2026
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.
背景
sync_aof=false场景下适配高版本 Redisrdb-only复制请求的 TODO。PSYNC进入完整复制流程;对支持rdb-only的 source,可以显式请求只发送 RDB,避免进入后续 AOF 增量阶段。改动
sync_reader.sync_aof=false且走PSYNC时,先发送REPLCONF rdb-only 1。tests/cases/sync_aof_false.py中补充端到端断言,覆盖 Redis / Valkey 版本差异下的支持与不支持路径。验证