RESP3: Use verbatim in MEMORY subcommands.
This commit is contained in:
parent
ff9a5d231b
commit
1b3cb3b0de
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user