• zhaozhao.zz's avatar
    Fix replica node cannot expand dicts when loading legacy RDB (#12839) · 8e11f84d
    zhaozhao.zz authored
    When loading RDB on cluster nodes, it is necessary to consider the
    scenario where a node is a replica.
    
    For example, during a rolling upgrade, new version instances are often
    mounted as replicas on old version instances. In this case, the full
    synchronization legacy RDB does not contain slot information, and the
    new version instance, acting as a replica, should be able to handle the
    legacy RDB correctly for `dbExpand`.
    
    Additionally, renaming `getMyClusterSlotCount` to `getMyShardSlotCount`
    would be appropriate.
    
    Introduced in #11695
    8e11f84d
db.c 112 KB