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
1b3cb3b0
Commit
1b3cb3b0
authored
Sep 18, 2019
by
antirez
Browse files
RESP3: Use verbatim in MEMORY subcommands.
parent
ff9a5d23
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
1b3cb3b0
...
@@ -1440,13 +1440,15 @@ NULL
...
@@ -1440,13 +1440,15 @@ NULL
#if defined(USE_JEMALLOC)
#if defined(USE_JEMALLOC)
sds
info
=
sdsempty
();
sds
info
=
sdsempty
();
je_malloc_stats_print
(
inputCatSds
,
&
info
,
NULL
);
je_malloc_stats_print
(
inputCatSds
,
&
info
,
NULL
);
addReplyBulkSds
(
c
,
info
);
addReplyVerbatim
(
c
,
info
,
sdslen
(
info
),
"txt"
)
sdsfree
(
info
);
#else
#else
addReplyBulkCString
(
c
,
"Stats not supported for the current allocator"
);
addReplyBulkCString
(
c
,
"Stats not supported for the current allocator"
);
#endif
#endif
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"doctor"
)
&&
c
->
argc
==
2
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"doctor"
)
&&
c
->
argc
==
2
)
{
sds
report
=
getMemoryDoctorReport
();
sds
report
=
getMemoryDoctorReport
();
addReplyBulkSds
(
c
,
report
);
addReplyVerbatim
(
c
,
report
,
sdslen
(
report
),
"txt"
);
sdsfree
(
report
);
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"purge"
)
&&
c
->
argc
==
2
)
{
}
else
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"purge"
)
&&
c
->
argc
==
2
)
{
#if defined(USE_JEMALLOC)
#if defined(USE_JEMALLOC)
char
tmp
[
32
];
char
tmp
[
32
];
...
...
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