Improve switchover undo when new master fails

Now the monitor properly restores the old master by running promotion code on it.
Also, binlog is disabled when enabling server events.
This commit is contained in:
Esa Korhonen
2019-06-07 17:26:17 +03:00
parent 53606934a6
commit d0e6921604
5 changed files with 93 additions and 107 deletions

View File

@ -222,7 +222,8 @@ using EventNameSet = std::unordered_set<std::string>;
enum class OperationType
{
SWITCHOVER,
FAILOVER
FAILOVER,
UNDO_DEMOTION // Performed when switchover fails in its first stages.
};
class GeneralOpData