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:
Esa Korhonen
2018-09-04 12:23:19 +03:00
parent cb54880b99
commit 56c84541df
5 changed files with 231 additions and 3 deletions

View File

@ -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);
};
/**