mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
-- Add mutex for user_connect handling
modified: storage/connect/ha_connect.cc modified: storage/connect/user_connect.cc modified: storage/connect/plgdbutl.cpp modified: storage/connect/user_connect.cc -- Trace work storage allocation and freeing in DEVELOPMENT mode modified: storage/connect/ha_connect.cc modified: storage/connect/jsonudf.cpp modified: storage/connect/plugutil.cpp
This commit is contained in:
@@ -184,8 +184,10 @@ int PlugExit(PGLOBAL g)
|
||||
free(dup);
|
||||
|
||||
if (g->Sarea) {
|
||||
if (trace)
|
||||
htrc("Freeing Sarea size=%d\n", g->Sarea_Size);
|
||||
#if !defined(DEVELOPMENT)
|
||||
if (trace) {
|
||||
#endif
|
||||
htrc("Freeing Sarea at %p size=%d\n", g->Sarea, g->Sarea_Size);
|
||||
|
||||
free(g->Sarea);
|
||||
} // endif Sarea
|
||||
@@ -467,7 +469,11 @@ void *PlugAllocMem(PGLOBAL g, uint size)
|
||||
if (!(areap = malloc(size)))
|
||||
sprintf(g->Message, MSG(MALLOC_ERROR), "malloc");
|
||||
|
||||
#if defined(DEVELOPMENT)
|
||||
if (true) {
|
||||
#else
|
||||
if (trace) {
|
||||
#endif
|
||||
if (areap)
|
||||
htrc("Memory of %u allocated at %p\n", size, areap);
|
||||
else
|
||||
|
Reference in New Issue
Block a user