Skip to content

Commit

Permalink
fix2
Browse files Browse the repository at this point in the history
Signed-off-by: Sher Sun <[email protected]>
  • Loading branch information
Sher Sun committed Apr 30, 2024
1 parent 2f00910 commit c9c3733
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -5682,6 +5682,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
long long memory_lua = evalMemory();
long long memory_functions = functionsMemory();
struct serverMemOverhead *mh = getMemoryOverheadData();
char mem_allocator[64] = ZMALLOC_LIB;

/* Peak memory is updated from time to time by serverCron() so it
* may happen that the instantaneous value is slightly bigger than
Expand Down Expand Up @@ -5757,11 +5758,7 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
"mem_overhead_db_hashtable_rehashing:%zu\r\n", mh->overhead_db_hashtable_rehashing,
"active_defrag_running:%d\r\n", server.active_defrag_running,
"lazyfree_pending_objects:%zu\r\n", lazyfreeGetPendingObjectsCount(),
#if defined(USE_JEMALLOC)
"defrag_supported: %s\r\n", "yes",
#else
"defrag_supported: %s\r\n", "no",
#endif
"defrag_supported: %s\r\n", (mem_allocator[0]=='j') ? "yes" : "no",
"lazyfreed_objects:%zu\r\n", lazyfreeGetFreedObjectsCount()));
freeMemoryOverheadData(mh);
}
Expand Down

0 comments on commit c9c3733

Please sign in to comment.