summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-07-28 17:47:54 +0200
committerantirez <antirez@gmail.com>2017-07-28 17:47:54 +0200
commitbc64df9a66def9a86461d2f215a142ffffd03369 (patch)
treef66a5d68f5d28b0791f0e134db9b6232bda5e97a
parentdc997755bf8c2d69899957a8ab6dc41aed0c7ddb (diff)
downloadredis-bc64df9a66def9a86461d2f215a142ffffd03369.tar.gz
Add MEMORY DOCTOR to MEMORY HELP.
-rw-r--r--src/object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 08c9ad956..2565ed59f 100644
--- a/src/object.c
+++ b/src/object.c
@@ -1163,7 +1163,9 @@ void memoryCommand(client *c) {
/* Nothing to do for other allocators. */
#endif
} else if (!strcasecmp(c->argv[1]->ptr,"help") && c->argc == 2) {
- addReplyMultiBulkLen(c,4);
+ addReplyMultiBulkLen(c,5);
+ addReplyBulkCString(c,
+"MEMORY DOCTOR - Outputs memory problems report");
addReplyBulkCString(c,
"MEMORY USAGE <key> [SAMPLES <count>] - Estimate memory usage of key");
addReplyBulkCString(c,