1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix for Valgrind errors: query_id needs to be inited early (already fixed in 5.0 by Konstantin) and so does client_capabilities (not fixed in 5.0);

because they are used by net_printf() and push_warning(), which can be called if check_connection() fails.
This commit is contained in:
guilhem@mysql.com
2005-10-14 15:34:52 +02:00
parent 5df9c6c2a3
commit 845b9fbf58
4 changed files with 2 additions and 3 deletions

View File

@ -186,6 +186,7 @@ THD::THD()
variables.pseudo_thread_id= 0;
one_shot_set= 0;
file_id = 0;
query_id= 0;
warn_id= 0;
db_charset= global_system_variables.collation_database;
mysys_var=0;
@ -196,6 +197,7 @@ THD::THD()
net.vio=0;
#endif
net.last_error[0]=0; // If error on boot
client_capabilities= 0; // minimalistic client
ull=0;
system_thread=cleanup_done=0;
peer_port= 0; // For SHOW PROCESSLIST