diff options
author | unknown <guilhem@mysql.com> | 2003-03-08 18:53:32 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-03-08 18:53:32 +0100 |
commit | 44c9a3893dc25de21dccd6aab7e1b1d75ec13642 (patch) | |
tree | 58f60d793557c70ab7099581f6d88634c53cb990 /sql/repl_failsafe.h | |
parent | 20bb527b80ddf1db92ef409b8857c9038af2d7ac (diff) | |
download | mariadb-git-44c9a3893dc25de21dccd6aab7e1b1d75ec13642.tar.gz |
Clearer error message when one forgot to grant REPLICATION SLAVE :
now we'll have something like this :
030308 18:46:58 Slave I/O thread: connected to master 'gb@localhost:3306', replication started in log 'FIRST' at position 4
030308 18:46:58 While trying to obtain the list of slaves from the master 'localhost:3306', user 'gb' got the following error: 'Access denied. You need the REPLICATION SLAVE privilege for this operation'
030308 18:46:58 Slave I/O thread exiting, read up to log 'FIRST', position 4
instead of "Error updating slave list: Query error".
This fixes bug #80.
sql/repl_failsafe.cc:
Clearer error message when one forgot to grant REPLICATION SLAVE
sql/repl_failsafe.h:
Clearer error message when one forgot to grant REPLICATION SLAVE
sql/slave.cc:
Updated for new syntax of update_slave_list
Diffstat (limited to 'sql/repl_failsafe.h')
-rw-r--r-- | sql/repl_failsafe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/repl_failsafe.h b/sql/repl_failsafe.h index ef1dc1f8778..ae8bb2bc4d5 100644 --- a/sql/repl_failsafe.h +++ b/sql/repl_failsafe.h @@ -19,7 +19,7 @@ extern const char* rpl_role_type[], *rpl_status_type[]; pthread_handler_decl(handle_failsafe_rpl,arg); void change_rpl_status(RPL_STATUS from_status, RPL_STATUS to_status); int find_recovery_captain(THD* thd, MYSQL* mysql); -int update_slave_list(MYSQL* mysql); +int update_slave_list(MYSQL* mysql, MASTER_INFO* mi); extern HASH slave_list; |