mirror of https://mirror.osredm.com/root/redis.git
Check cluster_enabled in readwriteCommand just like readonlyCommand. (#9015)
This commit is contained in:
parent
96bb078577
commit
f004073b54
|
@ -5734,6 +5734,10 @@ void readonlyCommand(client *c) {
|
|||
|
||||
/* The READWRITE command just clears the READONLY command state. */
|
||||
void readwriteCommand(client *c) {
|
||||
if (server.cluster_enabled == 0) {
|
||||
addReplyError(c,"This instance has cluster support disabled");
|
||||
return;
|
||||
}
|
||||
c->flags &= ~CLIENT_READONLY;
|
||||
addReply(c,shared.ok);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue