← Back to team overview

maria-developers team mailing list archive

Re: really need call my_thread_init() in libmysqlclient_r?

 

sorry! the my_error should be checked immediately, so here is no
problem. what about other var in THR_KEY_mysys?

2010/2/2 xiaobing jiang <s7v7nislands@xxxxxxxxx>:
> 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'?
>



References