MXS-2271 Change Monitor->m_name to std::string

Also, monitor address is no longer printed.
This commit is contained in:
Esa Korhonen
2019-03-28 18:12:34 +02:00
parent d7971fa44d
commit d89f0c062b
6 changed files with 84 additions and 84 deletions

View File

@ -312,6 +312,8 @@ public:
virtual monitor_state_t state() const = 0;
const char* name() const;
/**
* Configure the monitor. Called by monitor creation and altering code. Any inheriting classes
* should override this with their own configuration processing function. The overriding function
@ -385,7 +387,7 @@ public:
void show(DCB* dcb);
const char* const m_name; /**< Monitor instance name. TODO: change to string */
const std::string m_name; /**< Monitor instance name. */
const std::string m_module; /**< Name of the monitor module */
bool m_active {true}; /**< True if monitor exists and has not been "destroyed". */