MXS-1712 Cleanup reset-replication

Now logs messages explaining what has been done. Scheduled events are
disabled/enabled during the operation. Redirection of slaves is done at
the end similar to failover/switchover.
This commit is contained in:
Esa Korhonen
2018-09-18 11:05:00 +03:00
parent 71ffef5708
commit a3adcea524
3 changed files with 81 additions and 27 deletions

View File

@ -1045,7 +1045,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
};
modulecmd_register_command(MXS_MODULE_NAME,
"reset_replication",
"reset-replication",
MODULECMD_TYPE_ACTIVE,
handle_manual_reset_replication,
MXS_ARRAY_NELEMS(reset_gtid_argv), reset_gtid_argv,