MXS-1712 Add reset replication to MariaDB Monitor
The 'reset_replication' module command deletes all slave connections and binlogs, sets gtid to sequence 0 and restarts replication from the given master. Should be only used if gtid:s are incompatible but the actual data is known to be in sync.
This commit is contained in:
@ -97,6 +97,8 @@ public:
|
||||
*/
|
||||
bool run_manual_rejoin(SERVER* rejoin_server, json_t** error_out);
|
||||
|
||||
bool run_manual_reset_replication(SERVER* master_server, json_t** error_out);
|
||||
|
||||
protected:
|
||||
void pre_loop();
|
||||
void tick();
|
||||
@ -303,6 +305,7 @@ private:
|
||||
void disable_setting(const std::string& setting);
|
||||
bool check_sql_files();
|
||||
void enforce_read_only_on_slaves();
|
||||
bool manual_reset_replication(SERVER* master_server, json_t** error_out);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user