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:
@ -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
|
||||
|
Reference in New Issue
Block a user