Hi,

> We set the mysys_var->id to thread_id in store_globals() to allow
> MySQL to bind a user connection to different threads during execution
> of one query.  We need to change mysys->thread_id so that all reports
> (like dbug_print) are printed with the same logical thread id.
>
> The bug in question after this change was that thread_id was not
> initialized to 1 and the above call to store_global() was done before
> any creating of a user connection.
>
> Thanks to sort this out.  This makes it clear that it was a correct
> change to check for 'init'.

Ah, thanks for the explanation!

- Alex

_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to