mirror of
https://github.com/fluencelabs/redis
synced 2025-04-14 13:16:03 +00:00
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.
This commit is contained in:
parent
fd7a584f7a
commit
1c708b25ee
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user