A master that is down with no running slaves can be replaced

This should be a more general way to detect situations where a DBA
or another MaxScale performs a failover.
This commit is contained in:
Esa Korhonen
2018-08-24 11:34:46 +03:00
parent 178d31af27
commit 9e566bc619
3 changed files with 111 additions and 45 deletions

View File

@ -81,7 +81,7 @@ struct NodeData
static const int CYCLE_NONE = 0;
static const int CYCLE_FIRST = 1;
// Default value for reach
static const int REACH_UNKNOWN = 0;
static const int REACH_UNKNOWN = -1;
// Bookkeeping for graph searches. May be overwritten by multiple algorithms.
int index; /* Marks the order in which this node was visited. */