]> git.saurik.com Git - redis.git/commitdiff
added minimal cluster section in INFO output. This is only useful to check if the...
authorSalvatore Sanfilippo <antirez@gmail.com>
Mon, 11 Apr 2011 14:39:39 +0000 (16:39 +0200)
committerSalvatore Sanfilippo <antirez@gmail.com>
Mon, 11 Apr 2011 14:40:37 +0000 (16:40 +0200)
src/redis.c

index 9c726151fb66a87f5edbd7a712327ac982bbb640..22c65354384af421cdcdf998afec4350be3955b8 100644 (file)
@@ -1498,6 +1498,15 @@ sds genRedisInfoString(char *section) {
         }
     }
 
+    /* Clusetr */
+    if (allsections || defsections || !strcasecmp(section,"cluster")) {
+        if (sections++) info = sdscat(info,"\r\n");
+        info = sdscatprintf(info,
+        "# Cluster\r\n"
+        "cluster_enabled:%d\r\n",
+        server.cluster_enabled);
+    }
+
     /* Key space */
     if (allsections || defsections || !strcasecmp(section,"keyspace")) {
         if (sections++) info = sdscat(info,"\r\n");