diff --git a/src/cluster.c b/src/cluster.c index d4c78fe0c9..5207c7bd61 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1482,9 +1482,7 @@ void readonlyCommand(client *c) { /* The READWRITE command just clears the READONLY command state. */ void readwriteCommand(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 READWRITE command in standalone mode."); + addReplyError(c, "Redirects are not enabled"); return; } c->flag.readonly = 0; diff --git a/tests/integration/replica-redirect.tcl b/tests/integration/replica-redirect.tcl index a1582aa628..69ba5e7775 100644 --- a/tests/integration/replica-redirect.tcl +++ b/tests/integration/replica-redirect.tcl @@ -10,8 +10,8 @@ start_server {tags {needs:repl external:skip}} { set replica_pid [srv 0 pid] test {READONLY and READWRITE commands are disabled by default} { - assert_error {*cluster*disabled*READONLY*standalone*} {r readonly} - assert_error {*cluster*disabled*READWRITE*standalone*} {r readwrite} + assert_error {*Redirects are not enabled} {r readonly} + assert_error {*Redirects are not enabled} {r readwrite} } test {write command inside MULTI is QUEUED, EXEC should be REDIRECT} {