MXS-2169 Allow a downed server to be selected as topology master

This is required for the case when MaxScale is started when the master is
already down.
This commit is contained in:
Esa Korhonen
2019-05-10 11:23:41 +03:00
parent d2f3e56d0a
commit 4ee30f5c52
6 changed files with 290 additions and 184 deletions

View File

@ -61,7 +61,18 @@ public:
* @param addition String to add. The delimiter is printed before the addition.
*/
void cat(std::string& target, const std::string& addition);
/**
* Add to internal string.
*
* @param addition The string to add.
*/
void cat(const std::string& addition);
std::string message() const;
private:
const std::string m_separator;
std::string m_current_separator;
std::string m_message;
};