Allow monitors and services to start without servers
MaxScale can now start without any defined monitors. This allows the core services to be configured beforehand. With the changes to dynamic modifications to servers, automatic scaling of slaves is possible.
This commit is contained in:
@ -2649,17 +2649,12 @@ static bool check_server_permissions(SERVICE *service, SERVER* server,
|
||||
bool check_service_permissions(SERVICE* service)
|
||||
{
|
||||
if (is_internal_service(service->routerModule) ||
|
||||
config_get_global_options()->skip_permission_checks)
|
||||
config_get_global_options()->skip_permission_checks ||
|
||||
service->dbref == NULL) // No servers to check
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (service->dbref == NULL)
|
||||
{
|
||||
MXS_ERROR("[%s] Service is missing the servers parameter.", service->name);
|
||||
return false;
|
||||
}
|
||||
|
||||
char *user, *password;
|
||||
|
||||
if (serviceGetUser(service, &user, &password) == 0)
|
||||
|
Reference in New Issue
Block a user