MXS-2220 Move more server functions inside class
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include "internal/filter.hh"
|
||||
#include "internal/modules.hh"
|
||||
#include "internal/monitor.hh"
|
||||
#include "internal/server.hh"
|
||||
|
||||
/** Size of the error buffer */
|
||||
#define MODULECMD_ERRBUF_SIZE 512
|
||||
@ -292,7 +293,7 @@ static bool process_argument(const MODULECMD* cmd,
|
||||
break;
|
||||
|
||||
case MODULECMD_ARG_SERVER:
|
||||
if ((arg->value.server = server_find_by_unique_name((char*)value)))
|
||||
if ((arg->value.server = Server::find_by_unique_name((char*)value)))
|
||||
{
|
||||
if (MODULECMD_ALLOW_NAME_MISMATCH(type)
|
||||
|| (arg->value.server->protocol() == cmd->domain))
|
||||
|
Reference in New Issue
Block a user