mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user