summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-09-16 10:26:23 +0200
committerantirez <antirez@gmail.com>2016-09-16 10:26:23 +0200
commit78f35f8d2cff306d943366a5c05df9e75b0f028f (patch)
treec8d45948eae41e273860a01cbe928357ad4f850c /src/redis-cli.c
parent123891dbbf34026c51f1298f7fd6c69a4a3fd8d0 (diff)
downloadredis-78f35f8d2cff306d943366a5c05df9e75b0f028f.tar.gz
Memory related subcommands of DEBUG moved to MEMORY.
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index d1735d638..2036e7f46 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -843,8 +843,9 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
output_raw = 0;
if (!strcasecmp(command,"info") ||
(argc >= 2 && !strcasecmp(command,"debug") &&
- ((!strcasecmp(argv[1],"jemalloc") && !strcasecmp(argv[2],"info")) ||
- !strcasecmp(argv[1],"htstats"))) ||
+ !strcasecmp(argv[1],"htstats")) ||
+ (argc >= 2 && !strcasecmp(command,"memory") &&
+ !strcasecmp(argv[1],"allocator-stats")) ||
(argc == 2 && !strcasecmp(command,"cluster") &&
(!strcasecmp(argv[1],"nodes") ||
!strcasecmp(argv[1],"info"))) ||