summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2023-03-16 00:16:16 +0800
committerGitHub <noreply@github.com>2023-03-15 18:16:16 +0200
commit58285a6e9258412d0c99c8d0300620d43b209204 (patch)
treed905f2532fe34c04fb34876fd38d7cfd36995a07 /redis.conf
parent72f5aad014c5138f4521921de116f50a8af1790c (diff)
downloadredis-58285a6e9258412d0c99c8d0300620d43b209204.tar.gz
Fix WAITAOF mix-use last_offset and last_numreplicas (#11922)
There be a situation that satisfies WAIT, and then wrongly unblock WAITAOF because we mix-use last_offset and last_numreplicas. We update last_offset and last_numreplicas only when the condition matches. i.e. output of either replicationCountAOFAcksByOffset or replicationCountAcksByOffset is right. In this case, we need to have separate last_ variables for each of them. Added a last_aof_offset and last_aof_numreplicas for WAITAOF. WAITAOF was added in #11713. Found while coding #11917. A Test was added to validate that case.
Diffstat (limited to 'redis.conf')
0 files changed, 0 insertions, 0 deletions