Allow programatic control of galera restarting

If a test program needs other than the default Galera config
(e.g. log_slave_updates enabled), then it should be able to
programmatically cause galera to be restarted as part of the
TestConnections construction.
This commit is contained in:
Johan Wikman
2018-09-12 08:41:52 +03:00
parent 9b0f016aba
commit d881630204
2 changed files with 20 additions and 3 deletions

View File

@ -254,6 +254,18 @@ public:
static void require_repl_version(const char* version);
static void require_galera_version(const char* version);
/**
* @brief Specify whether galera should be restarted.
*
* @param value If true, galera should be restarted.
*
* @note Even if set to false (which is also the default), '-g' or '--restart-galera' at
* the command line will still cause a restart, unless '-y' or '--no-galera' has
* been specified. '-y' will prevent galera from being restarted even if the value
* has been set to true.
*/
static void restart_galera(bool value);
/**
* @brief add_result adds result to global_result and prints error message if result is not 0
* @param result 0 if step PASSED