• zhaozhao.zz's avatar
    rebuild replication backlog index when master restart (#9720) · d08f0552
    zhaozhao.zz authored
    After PR #9166 , replication backlog is not a real block of memory, just contains a
    reference points to replication buffer's block and the blocks index (to accelerate
    search offset when partial sync), so we need update both replication buffer's block's
    offset and replication backlog blocks index's offset when master restart from RDB,
    since the `server.master_repl_offset` is changed.
    The implications of this bug was just a slow search, but not a replication failure.
    d08f0552
replication.c 160 KB