• Binbin's avatar
    Fix bgsaveerr issue in psync wrong offset test (#11043) · 98410d0d
    Binbin authored
    The kill above is sometimes successful and sometimes already too late.
    The PING in pysnc wrong offset test got rejected by bgsaveerr because
    lastbgsave_status is C_ERR.
    
    In theory, using diskless can avoid PING being affected, because when
    the replica is dropped, we will kill the child with SIGUSR1, and this
    will not affect lastbgsave_status.
    
    Anyway, this kill is not particularly needed here, dropping the kill
    is the best one, since we do have the waitForBgsave, so just let it
    take care of the bgsave. No need for fast termination.
    
    (cherry picked from commit e7144693)
    98410d0d
replication.tcl 58.4 KB