Commit 1c708b25 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

added minimal cluster section in INFO output. This is only useful to check if...

added minimal cluster section in INFO output. This is only useful to check if the instance is or not configured as a cluster node, all the other informations are accessible using the CLUSTER command.
parent fd7a584f
...@@ -1498,6 +1498,15 @@ sds genRedisInfoString(char *section) { ...@@ -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 */ /* Key space */
if (allsections || defsections || !strcasecmp(section,"keyspace")) { if (allsections || defsections || !strcasecmp(section,"keyspace")) {
if (sections++) info = sdscat(info,"\r\n"); if (sections++) info = sdscat(info,"\r\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment