Skip to content

Commit

Permalink
Update src/cluster.c
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: zhaozhao.zz <zhaozhao.zz@alibaba-inc.com>
  • Loading branch information
soloestoy and zuiderkwast authored Dec 16, 2024
1 parent c87b50f commit 3925990
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,9 +1472,7 @@ void askingCommand(client *c) {
* with read-only commands to keys that are served by the replica's primary. */
void readonlyCommand(client *c) {
if (server.cluster_enabled == 0 && !(c->capa & CLIENT_CAPA_REDIRECT)) {
addReplyError(c, "This instance has cluster support disabled,"
" you need to execute the CLIENT CAPA REDIRECT command,"
" before you can use the READONLY command in standalone mode.");
addReplyError(c, "Redirects are not enabled");
return;
}
c->flag.readonly = 1;
Expand Down

0 comments on commit 3925990

Please sign in to comment.