Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f004073b
Unverified
Commit
f004073b
authored
Jun 22, 2021
by
Binbin
Committed by
GitHub
Jun 21, 2021
Browse files
Check cluster_enabled in readwriteCommand just like readonlyCommand. (#9015)
parent
96bb0785
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
f004073b
...
...
@@ -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);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment