1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00
* don't use 'myf flags', when 'my_bool is_thread_specific' is meant
* call set_malloc_size_cb() for embedded too
* warn in safemalloc if the memory is freed by a wrong thread

sql/mysqld.cc:
  move set_malloc_size_cb() to a function that is also called for embedded
sql/mysqld.h:
  gdb-friendly, one can put breakpoint on a function, but not on a macro
sql/sql_class.cc:
  initialize thread_id earlier
This commit is contained in:
Sergei Golubchik
2013-01-23 16:20:39 +01:00
parent 5205188200
commit c71fad9983
7 changed files with 85 additions and 78 deletions

View File

@@ -793,6 +793,7 @@ THD::THD()
accessed_rows_and_keys(0),
warning_info(&main_warning_info),
stmt_da(&main_da),
thread_id(0),
global_disable_checkpoint(0),
is_fatal_error(0),
transaction_rollback_request(0),
@@ -867,7 +868,6 @@ THD::THD()
connection_name.length= 0;
bzero(&variables, sizeof(variables));
thread_id= 0;
one_shot_set= 0;
file_id = 0;
query_id= 0;