mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
Added name to MEM_ROOT for esier debugging
This will make it easier to how memory allocation is done when debugging with either DBUG or gdb. Will especially help when debugging stored procedures Main change is a name argument as second argument to init_alloc_root() init_sql_alloc() Other things: - Added DBUG_ENTER/EXIT to some Virtual_tmp_table functions
This commit is contained in:
parent
1e5e3d562b
commit
d69642dedd
60 changed files with 187 additions and 122 deletions
|
|
@ -655,7 +655,7 @@ void init_embedded_mysql(MYSQL *mysql, int client_flag)
|
|||
thd->mysql= mysql;
|
||||
mysql->server_version= server_version;
|
||||
mysql->client_flag= client_flag;
|
||||
init_alloc_root(&mysql->field_alloc, 8192, 0, MYF(0));
|
||||
init_alloc_root(&mysql->field_alloc, "fields", 8192, 0, MYF(0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -972,7 +972,7 @@ int Protocol::begin_dataset()
|
|||
return 1;
|
||||
alloc= &data->alloc;
|
||||
/* Assume rowlength < 8192 */
|
||||
init_alloc_root(alloc, 8192, 0, MYF(0));
|
||||
init_alloc_root(alloc, "protocol", 8192, 0, MYF(0));
|
||||
alloc->min_malloc= sizeof(MYSQL_ROWS);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue