X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f304f22b22b2d3a09b9ab533f4cdcf4632858861..744f34d834df8424fd201305fb469e540bb29020:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 1cc8cc75..22c65354 100644 --- a/src/redis.c +++ b/src/redis.c @@ -191,7 +191,8 @@ struct redisCommand redisCommandTable[] = { {"cluster",clusterCommand,-2,0,NULL,0,0,0,0,0}, {"restore",restoreCommand,4,0,NULL,0,0,0,0,0}, {"migrate",migrateCommand,6,0,NULL,0,0,0,0,0}, - {"dump",dumpCommand,2,0,NULL,0,0,0,0,0} + {"dump",dumpCommand,2,0,NULL,0,0,0,0,0}, + {"object",objectCommand,-2,0,NULL,0,0,0,0,0} }; /*============================ Utility functions ============================ */ @@ -1497,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");