Bug #52768 | Slave_SQL_Errno is sometimes set to my_errno | ||
---|---|---|---|
Submitted: | 12 Apr 2010 16:13 | Modified: | 3 Jul 2012 9:04 |
Reporter: | Sven Sandberg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.1+, 5.6.99 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | Slave_SQL_Errno |
[12 Apr 2010 16:13]
Sven Sandberg
[13 Apr 2010 5:08]
Sveta Smirnova
Thank you for the report. Verified as described.
[3 Jul 2012 9:03]
Jon Stephens
Fixed in trunk, tagged 5.7.0. Documented in the 5.7.0 changelog as follows: When an error occurs in the slave SQL thread, this causes the Slave_SQL_Error and Slave_SQL_Errno columns of SHOW SLAVE STATUS to display the reason for the error. The error number should be one of the usual constants ER_* defined in sql/share/errmsg.txt, and the error message should be the corresponding string. However, in some cases, Slave_SQL_Errno was set to something else than an ER_* number, and Slave_SQL_Error to a hard-coded error message rather than a translatable string from sql/share/errmsg.txt. Now all errors shown by SHOW SLAVE STATUS originate from sql/share/errmsg.txt, as expected. Closed.