← Back to team overview

maria-developers team mailing list archive

Re: really need call my_thread_init() in libmysqlclient_r?

 

hi, Sergei:


> You cannot easily remove my_thread_init/my_thread_end, besides debugging
> THR_KEY_mysys is also needed for my_errno, which is uses all over mysys.
>

thanks, but have another question:
what about in one thread, I call mysql_init() twice to create 2 connection.
they will share the THR_KEY_mysys thread local variable, right?
the two connections will share my_error, is this will cause some 'bug'?



Follow ups

References