diff options
author | mats@kindahl-laptop.dnsalias.net <> | 2007-06-09 07:19:37 +0200 |
---|---|---|
committer | mats@kindahl-laptop.dnsalias.net <> | 2007-06-09 07:19:37 +0200 |
commit | 9094e97aed8536e628cb6c5a81b79ecc6521be7a (patch) | |
tree | cdc21b3b7f0f7811d04f8bafebcee2697b8a7d3b /sql/rpl_mi.h | |
parent | bba84e754d61918dd147f1926b338f5f82ee3150 (diff) | |
download | mariadb-git-9094e97aed8536e628cb6c5a81b79ecc6521be7a.tar.gz |
BUG#24954 (Last_errno and Last_error not set after master_retry_count was reached):
Adding new fields Last_{IO,SQL}_Errno and Last_{IO,SQL}_Error to output
of SHOW SLAVE STATUS to hold errors from I/O and SQL thread respectively.
Old fields Last_Error and Last_Errno are aliases for Last_SQL_Error and
Last_SQL_Errno respectively.
Fields are added last to output of SHOW SLAVE STATUS to allow old applications
to use the same positional arguments into the row, while allowing new
application to benefit from the added information.
In addition, some new error codes are added (especially for the I/O
thread) to be able to provide sensible error message.
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r-- | sql/rpl_mi.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h index f0a7d6681fe..aac1072402f 100644 --- a/sql/rpl_mi.h +++ b/sql/rpl_mi.h @@ -19,6 +19,8 @@ #ifdef HAVE_REPLICATION +#include "rpl_reporting.h" + /***************************************************************************** Replication IO Thread @@ -52,7 +54,7 @@ *****************************************************************************/ -class MASTER_INFO +class MASTER_INFO : public Slave_reporting_capability { public: MASTER_INFO(); |