• antirez's avatar
    Cluster: conditions to clear "migrating" on slot for SETSLOT ... NODE changed. · 218358bb
    antirez authored
    If the slot is manually assigned to another node, clear the migrating
    status regardless of the fact it was previously assigned to us or not,
    as long as we no longer have keys for this slot.
    
    This avoid a race during slots migration that may leave the slot in
    migrating status in the source node, since it received an update message
    from the destination node that is already claiming the slot.
    
    This way we are sure that redis-trib at the end of the slot migration is
    always able to close the slot correctly.
    218358bb
cluster.c 150 KB