Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bc64df9a
Commit
bc64df9a
authored
Jul 28, 2017
by
antirez
Browse files
Add MEMORY DOCTOR to MEMORY HELP.
parent
dc997755
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
bc64df9a
...
@@ -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