Fix mm_mysqlmon test

Because of monitor changes, the test had wrong assumptions.
Renamed the test and updated it to use MaxCtrl for some queries.

Also, changed the type of the cycle container in the monitor to an
ordered map so that results are predictable.
This commit is contained in:
Esa Korhonen
2018-07-16 17:40:07 +03:00
parent d91710c640
commit 590df89dbc
5 changed files with 237 additions and 230 deletions

View File

@ -32,8 +32,8 @@ extern const char * const CN_DEMOTION_SQL_FILE;
typedef std::unordered_map<MXS_MONITORED_SERVER*, MariaDBServer*> ServerInfoMap;
// Map of server id:s to MariaDBServer. Useful when constructing the replication graph.
typedef std::unordered_map<int64_t, MariaDBServer*> IdToServerMap;
// Map of cycle number to cycle members
typedef std::unordered_map<int, ServerArray> CycleMap;
// Map of cycle number to cycle members. The elements should be in order for predictability when iterating.
typedef std::map<int, ServerArray> CycleMap;
// MariaDB Monitor instance data
class MariaDBMonitor : public maxscale::MonitorInstance