• A
    Don't send REPLCONF ACK to old masters. · 2a1a31ca
    antirez 提交于
    Masters not understanding REPLCONF ACK will reply with errors to our
    requests causing a number of possible issues.
    
    This commit detects a global replication offest set to -1 at the end of
    the replication, and marks the client representing the master with the
    REDIS_PRE_PSYNC flag.
    
    Note that this flag was called REDIS_PRE_PSYNC_SLAVE but now it is just
    REDIS_PRE_PSYNC as it is used for both slaves and masters starting with
    this commit.
    
    This commit fixes issue #1488.
    2a1a31ca
redis.h 58.8 KB