Unverified Commit f004073b authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Check cluster_enabled in readwriteCommand just like readonlyCommand. (#9015)

parent 96bb0785
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment