• Oran Agra's avatar
    Fix assertion when a key is lazy expired during cluster key migration (#11176) · c789fb0a
    Oran Agra authored
    Redis 7.0 has #9890 which added an assertion when the propagation queue
    was not flushed and we got to beforeSleep.
    But it turns out that when processCommands calls getNodeByQuery and
    decides to reject the command, it can lead to a key that was lazy
    expired and is deleted without later flushing the propagation queue.
    
    This change prevents lazy expiry from deleting the key at this stage
    (not as part of a command being processed in `call`)
    c789fb0a
db.c 87.9 KB