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.cc | |
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.cc')
-rw-r--r-- | sql/rpl_mi.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/rpl_mi.cc b/sql/rpl_mi.cc index c89c8aa131e..d23d57c7eb7 100644 --- a/sql/rpl_mi.cc +++ b/sql/rpl_mi.cc @@ -29,7 +29,8 @@ int init_strvar_from_file(char *var, int max_size, IO_CACHE *f, const char *default_val); MASTER_INFO::MASTER_INFO() - :ssl(0), fd(-1), io_thd(0), inited(0), + :Slave_reporting_capability("I/O"), + ssl(0), fd(-1), io_thd(0), inited(0), abort_slave(0),slave_running(0), slave_run_id(0) { host[0] = 0; user[0] = 0; password[0] = 0; |