Bug #28086 | SBR of USER() becomes corrupted on slave | ||
---|---|---|---|
Submitted: | 25 Apr 2007 0:42 | Modified: | 28 Nov 2007 17:13 |
Reporter: | Jonathan Miller | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.1-telco | OS: | Linux (32) |
Assigned to: | Mats Kindahl | CPU Architecture: | Any |
Tags: | bfsm_2007_10_18 |
[25 Apr 2007 0:42]
Jonathan Miller
[25 Apr 2007 0:46]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/25361 ChangeSet@1.2481, 2007-04-25 02:45:50+02:00, jmiller@mysql.com +1 -0 disabled.def: Disabled test due to Bug #28086
[25 Apr 2007 14:25]
Jonathan Miller
This happens if you use innodb -> myisam as well. Will attached test case in a few.
[25 Apr 2007 16:17]
Jonathan Miller
innodb->myisam test
Attachment: rpl_stm_innodb.test (application/octet-stream, text), 6.50 KiB.
[25 Apr 2007 16:17]
Jonathan Miller
option file
Attachment: rpl_stm_innodb-master.opt (application/octet-stream, text), 41 bytes.
[25 Apr 2007 16:17]
Jonathan Miller
include file
Attachment: tpcb.inc (application/octet-stream, text), 4.32 KiB.
[31 Oct 2007 11:26]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/36743 ChangeSet@1.2605, 2007-10-31 12:25:38+01:00, mats@kindahl-laptop.dnsalias.net +3 -0 BUG#28086 (SBR of USER() becomes corrupted on slave): Marking statements containing USER() as unsafe, causing them to switch to using row-based logging in MIXED mode and generate a warning in STATEMENT mode.
[31 Oct 2007 13:47]
Tatiana Azundris Nuernberg
Patch looks good. Is CURRENT_USER() subject to this issue?
[31 Oct 2007 20:10]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/36796 ChangeSet@1.2605, 2007-10-31 21:09:52+01:00, mats@kindahl-laptop.dnsalias.net +3 -0 BUG#28086 (SBR of USER() becomes corrupted on slave): Marking statements containing USER() or CURRENT_USER() as unsafe, causing them to switch to using row-based logging in MIXED mode and generate a warning in STATEMENT mode.
[27 Nov 2007 10:50]
Bugs System
Pushed into 5.1.23-rc
[27 Nov 2007 10:52]
Bugs System
Pushed into 6.0.4-alpha
[28 Nov 2007 17:13]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented in 5.1.23 and 6.0.4 changelogs as follows: Replication of USER(), CURRENT_USER(), and CURRENT_USER now switches to row-based logging in MIXED mode, and generates a warning in STATEMENT mode. Also noted in http://dev.mysql.com/doc/refman/5.1/en/binary-log-mixed.html and http://dev.mysql.com/doc/refman/6.0/en/binary-log-mixed.html.