• debing.sun's avatar
    Don't keep global replication buffer reference for replicas marked CLIENT_CLOSE_ASAP (#13363) · 52e12d8b
    debing.sun authored
    
    
    In certain situations, we might generate a large number of propagates
    (e.g., multi/exec, Lua script, or a single command generating tons of
    propagations) within an event loop.
    During the process of propagating to a replica, if the replica is
    disconnected(marked as CLIENT_CLOSE_ASAP) due to exceeding the output
    buffer limit, we should remove its reference to the global replication
    buffer to avoid the global replication buffer being unable to be
    properly trimmed due to being referenced.
    
    ---------
    Co-authored-by: default avataroranagra <oran@redislabs.com>
    52e12d8b
networking.c 178 KB