Commit 5d51c81c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4457 fix gcc optimized compile problem; memory stats uninitialized refs[t:4457]

git-svn-id: file:///svn/toku/tokudb@39413 c7de825b-a66e-492c-adef-691d508d4ae1
parent 213d54e2
......@@ -2101,6 +2101,7 @@ memory_get_status(void) {
if (!memory_status.initialized)
memory_status_init();
LOCAL_MEMORY_STATUS_S local_memstat;
toku_memory_get_status(&local_memstat);
MEMORY_STATUS_VALUE(MEMORY_MALLOC_COUNT) = local_memstat.malloc_count;
MEMORY_STATUS_VALUE(MEMORY_FREE_COUNT) = local_memstat.free_count;
MEMORY_STATUS_VALUE(MEMORY_REALLOC_COUNT) = local_memstat.realloc_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment