• Guy Benoish's avatar
    Stale replica should allow MULTI/EXEC · 240094c9
    Guy Benoish authored
    Example: Client uses a pipe to send the following to a
    stale replica:
    
    MULTI
    .. do something ...
    DISCARD
    
    The replica will reply the MUTLI with -MASTERDOWN and
    execute the rest of the commands... A client using a
    pipe might not be aware that MULTI failed until it's
    too late.
    
    I can't think of a reason why MULTI/EXEC/DISCARD should
    not be executed on stale replicas...
    
    Also, enable MULTI/EXEC/DISCARD during loading
    240094c9
server.c 183 KB