maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #02084
Re: SHOW PROFILE enhancements for Windows
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
References