diff options
author | Eduardo Semprebon <eduardobr@gmail.com> | 2021-11-18 09:53:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 10:53:17 +0200 |
commit | 1a255e315024d4536cddba9d7ca6d06699d17be3 (patch) | |
tree | 22eed37389e85a7992858ff335144ce35daa6ee4 /redis.conf | |
parent | af7489886dab9362e4661a3015ac606025710686 (diff) | |
download | redis-1a255e315024d4536cddba9d7ca6d06699d17be3.tar.gz |
Reject PING with MASTERDOWN when replica-serve-stale-data=no (#9757)
Currently PING returns different status when server is not serving data,
for example when `LOADING` or `BUSY`.
But same was not true for `MASTERDOWN`
This commit makes PING reply with `MASTERDOWN` when
replica-serve-stale-data=no and link is MASTER is down.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis.conf b/redis.conf index 04e8bb117..cccc48e00 100644 --- a/redis.conf +++ b/redis.conf @@ -520,8 +520,8 @@ dir ./ # # 2) If replica-serve-stale-data is set to 'no' the replica will reply with error # "MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'" -# to all data access commands, excluding commands such as : -# INFO, REPLICAOF, AUTH, PING, SHUTDOWN, REPLCONF, ROLE, CONFIG, SUBSCRIBE, +# to all data access commands, excluding commands such as: +# INFO, REPLICAOF, AUTH, SHUTDOWN, REPLCONF, ROLE, CONFIG, SUBSCRIBE, # UNSUBSCRIBE, PSUBSCRIBE, PUNSUBSCRIBE, PUBLISH, PUBSUB, COMMAND, POST, # HOST and LATENCY. # |