Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0c0b77d1
Commit
0c0b77d1
authored
Jul 28, 2017
by
antirez
Browse files
Add MEMORY DOCTOR to MEMORY HELP.
parent
fa6bd1b2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/object.c
View file @
0c0b77d1
...
@@ -1163,7 +1163,9 @@ void memoryCommand(client *c) {
...
@@ -1163,7 +1163,9 @@ void memoryCommand(client *c) {
/* Nothing to do for other allocators. */
/* Nothing to do for other allocators. */
#endif
#endif
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
)
&&
c
->
argc
==
2
)
{
}
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
,
addReplyBulkCString
(
c
,
"MEMORY USAGE <key> [SAMPLES <count>] - Estimate memory usage of key"
);
"MEMORY USAGE <key> [SAMPLES <count>] - Estimate memory usage of key"
);
addReplyBulkCString
(
c
,
addReplyBulkCString
(
c
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment