mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Final fixes for Memory_used
- Change some static variables to dynamic to ensure that we don't do any memory allocations before server starts or stops - Print more memory information on SIGHUP. Fixed output. - Write out if memory was lost if run with --debug-at-exit - Fixed wrong #ifdef in sql_cache.cc
This commit is contained in:
@ -354,7 +354,7 @@ const uchar *query_state_map;
|
||||
#include "emb_qcache.h"
|
||||
#endif
|
||||
|
||||
#if !defined(EXTRA_DBUG) && !defined(DBUG_OFF)
|
||||
#if defined(EXTRA_DEBUG) && !defined(DBUG_OFF)
|
||||
#define RW_WLOCK(M) {DBUG_PRINT("lock", ("rwlock wlock 0x%lx",(ulong)(M))); \
|
||||
if (!mysql_rwlock_wrlock(M)) DBUG_PRINT("lock", ("rwlock wlock ok")); \
|
||||
else DBUG_PRINT("lock", ("rwlock wlock FAILED %d", errno)); }
|
||||
|
Reference in New Issue
Block a user