• Qu Chen's avatar
    Fix master client check in expireIfNeeded() for read only replica (#11761) · 6444214c
    Qu Chen authored
    Redis 7.0 introduced new logic in expireIfNeeded() where a read-only replica would never consider a key as expired when replicating commands from the master. See acf3495e. This was done by checking server.current_client with server.master. However, we should instead check for CLIENT_MASTER flag for this logic to be more robust and consistent with the rest of the Redis code base.
    6444214c
db.c 88.8 KB