MXS-2220 Change server name to constant string
This commit is contained in:
@ -311,7 +311,7 @@ public:
|
||||
*/
|
||||
inline const char* name() const
|
||||
{
|
||||
return m_backend->server->name;
|
||||
return m_backend->server->name();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user