MXS-2220 Change server name to constant string

This commit is contained in:
Esa Korhonen
2018-12-19 15:15:02 +02:00
parent 5fc2c1f49c
commit 40485d746c
37 changed files with 194 additions and 173 deletions

View File

@ -311,7 +311,7 @@ public:
*/
inline const char* name() const
{
return m_backend->server->name;
return m_backend->server->name();
}
/**

View File

@ -82,7 +82,6 @@ public:
};
// Base settings
char* name = nullptr; /**< Server config name */
char* protocol = nullptr; /**< Backend protocol module name */
char* authenticator = nullptr; /**< Authenticator module name */
@ -190,6 +189,13 @@ public:
*/
virtual std::string version_string() const = 0;
/**
* Returns the server configuration name. The value is returned as a c-string for printing convenience.
*
* @return Server name
*/
virtual const char* name() const = 0;
/**
* Update the server port. TODO: Move this to internal class once blr is gone.
*