MXS-2300: Add history pruning test

The test checks that the session command history pruning works as
expected.
This commit is contained in:
Markus Mäkelä
2019-01-30 12:58:42 +02:00
parent 260ce9b8b8
commit e5cdefa69d
5 changed files with 182 additions and 0 deletions

View File

@ -936,6 +936,18 @@ std::string Mariadb_nodes::get_server_id_str(int index)
return ss.str();
}
std::vector<int> Mariadb_nodes::get_all_server_ids()
{
std::vector<int> rval;
for (int i = 0; i < N; i++)
{
rval.push_back(get_server_id(i));
}
return rval;
}
bool do_flush_hosts(MYSQL* conn)
{
int local_result = 0;