• antirez's avatar
    add linkClient(): adds the client and caches the list node. · 62a4b817
    antirez authored
    We have this operation in two places: when caching the master and
    when linking a new client after the client creation. By having an API
    for this we avoid incurring in errors when modifying one of the two
    places forgetting the other. The function is also a good place where to
    document why we cache the linked list node.
    
    Related to #4497 and #4210.
    62a4b817
replication.c 108 KB