MXS-1929: Remove service parameter setters

Removed the explicit setters for the service parameters. Not all of them
were implemented and they were only used internally. Moved the parameter
validation and update processing inside the Service class to reduce the
load on the other parts of the core.
This commit is contained in:
Markus Mäkelä
2018-08-02 20:50:05 +03:00
parent dc8414db9f
commit 5d085f5cdf
4 changed files with 160 additions and 304 deletions

View File

@ -2490,7 +2490,7 @@ restart_monitor(DCB *dcb, MXS_MONITOR *monitor)
static void
enable_service_root(DCB *dcb, SERVICE *service)
{
serviceEnableRootUser((Service*)service, 1);
service_enable_root((Service*)service, 1);
}
/**
@ -2502,7 +2502,7 @@ enable_service_root(DCB *dcb, SERVICE *service)
static void
disable_service_root(DCB *dcb, SERVICE *service)
{
serviceEnableRootUser((Service*)service, 0);
service_enable_root((Service*)service, 0);
}
struct log_action_entry