Bug #61207 | binlog does not set pseudo_thread_id for temporary tables | ||
---|---|---|---|
Submitted: | 17 May 2011 19:44 | Modified: | 1 Jan 2012 18:54 |
Reporter: | Brian Martin | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.1.56 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | binlog, pseudo_thread_id, temporary |
[17 May 2011 19:44]
Brian Martin
[14 Jul 2011 19:53]
Sveta Smirnova
Thank you for the report. According to http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_pseudo_thread_i... "This variable is for internal server use. " Do you set it manually?
[14 Aug 2011 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[17 Nov 2011 12:36]
James Michael DuPont
We have a workaround for this bug , commenting out the checks for the flag LOG_EVENT_THREAD_SPECIFIC_F and just setting the pseudo thread id for all log entries. Specific Problem : The flag LOG_EVENT_THREAD_SPECIFIC_F is not being set properly for the truncate temp tables command. I dont have time to debug this code, it is not clear where the flag is being set.
[17 Nov 2011 12:49]
James Michael DuPont
here is a patch for the version we are using : mysql-5.0.77/sql diff -u log_event.bak.cc log_event.cc --- log_event.bak.cc 2011-11-17 13:28:26.000000000 +0100 +++ log_event.cc 2011-11-17 13:30:28.000000000 +0100 @@ -1727,7 +1727,7 @@ end= strmov(end, print_event_info->delimiter); *end++='\n'; my_fwrite(file, (byte*) buff, (uint) (end-buff),MYF(MY_NABP | MY_WME)); - if (flags & LOG_EVENT_THREAD_SPECIFIC_F) + // if (flags & LOG_EVENT_THREAD_SPECIFIC_F) //workaround for Bug #61207binlog does not set pseudo_thread_id for temporary tables fprintf(file,"SET @@session.pseudo_thread_id=%lu%s\n", (ulong)thread_id, print_event_info->delimiter); @@ -3026,7 +3026,7 @@ commented ? "# " : "", db, print_event_info->delimiter); - if (flags & LOG_EVENT_THREAD_SPECIFIC_F) + // if (flags & LOG_EVENT_THREAD_SPECIFIC_F) workaround Bug #61207binlog does not set pseudo_thread_id for temporary tables fprintf(file,"%sSET @@session.pseudo_thread_id=%lu%s\n", commented ? "# " : "", (ulong)thread_id, print_event_info->delimiter);
[1 Dec 2011 18:54]
Sveta Smirnova
James, thank you for the patch. But why do you need pseudo_thread_id? Do you apply binary log from another server and want its events to be stored to binary log?
[2 Jan 2012 7:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[13 Sep 2018 5:29]
MySQL Verification Team
See https://bugs.mysql.com/bug.php?id=51226