Fix default protocol module names for objects

If either a server or a listener was created at runtime, it would use the
old protocol module name and log a warning.
This commit is contained in:
Markus Mäkelä 2018-01-14 21:35:30 +02:00
parent f167bc5f02
commit a44e352f4f

View File

@ -152,7 +152,7 @@ bool runtime_create_server(const char *name, const char *address, const char *po
}
if (protocol == NULL)
{
protocol = "MySQLBackend";
protocol = "mariadbbackend";
}
if (authenticator == NULL && (authenticator = get_default_authenticator(protocol)) == NULL)
{
@ -808,7 +808,7 @@ bool runtime_create_listener(SERVICE *service, const char *name, const char *add
}
if (proto == NULL || strcasecmp(proto, CN_DEFAULT) == 0)
{
proto = "MySQLClient";
proto = "mariadbclient";
}
if (auth && strcasecmp(auth, CN_DEFAULT) == 0)