• Wang Yuan's avatar
    Delay to discard cached master when full synchronization (#9398) · cee3d67f
    Wang Yuan authored
    * Delay to discard cache master when full synchronization
    * Don't disconnect with replicas before loading transferred RDB when full sync
    
    Previously, once replica need to start full synchronization with master,
    it will discard cached master whatever full synchronization is failed or
    not. 
    Now we discard cached master only when transferring RDB is finished
    and start to change data space, this make replica could start partial
    resynchronization with another new master if new master is failed
    during full synchronization.
    cee3d67f
replication.c 151 KB