mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
Ensure clients that are blocked on module authentication are not disconnected if cluster is down
Signed-off-by: Jason Kelly <jason.kelly@nokia.com>
This commit is contained in:
parent
5eac99c312
commit
4a8ac2f3fc
1 changed files with 4 additions and 0 deletions
|
|
@ -1254,6 +1254,10 @@ int clusterRedirectBlockedClientIfNeeded(client *c) {
|
|||
dictEntry *de;
|
||||
dictIterator *di;
|
||||
|
||||
/* If the client is blocked on module authentication, don't unblock it */
|
||||
if (c->bstate.btype == BLOCKED_MODULE && clientHasModuleAuthInProgress(c))
|
||||
return 0;
|
||||
|
||||
/* If the cluster is down, unblock the client with the right error.
|
||||
* If the cluster is configured to allow reads on cluster down, we
|
||||
* still want to emit this error since a write will be required
|
||||
|
|
|
|||
Loading…
Reference in a new issue