1. mirror
  2. redis


antirez  committed 455da35

Cluster: specific error code for cluster down condition.

  • Participants
  • Parent commits 522c325
  • Branches unstable

Comments (0)

Files changed (1)

File src/redis.c

View file
         int hashslot;
         if (server.cluster->state != REDIS_CLUSTER_OK) {
-            addReplyError(c,"The cluster is down. Check with CLUSTER INFO for more information");
+            addReplySds(c,sdsnew("-CLUSTERDOWN The cluster is down. Use CLUSTER INFO for more information\r\n"));
             return REDIS_OK;
         } else {
             int ask;