• Wang Yuan's avatar
    Backup keys to slots map and restore when fail to sync if diskless-load type... · b55a827e
    Wang Yuan authored
    
    Backup keys to slots map and restore when fail to sync if diskless-load type is swapdb in cluster mode (#8108)
    
    When replica diskless-load type is swapdb in cluster mode, we didn't backup
    keys to slots map, so we will lose keys to slots map if fail to sync.
    Now we backup keys to slots map at first, and restore it properly when fail.
    
    This commit includes a refactory/cleanup of the backups mechanism (moving it to db.c and re-structuring it a bit).
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    b55a827e
bio.c 10.8 KB