MXS-2271 Rename monitor-related classes
MXS_MONITOR->Monitor MonitorInstance->MonitorWorker MonitorInstanceSimple->MonitorWorkerSimple
This commit is contained in:
@ -955,7 +955,7 @@ bool mxs::server_set_status(SERVER* srv, int bit, string* errmsg_out)
|
||||
/* First check if the server is monitored. This isn't done under a lock
|
||||
* but the race condition cannot cause significant harm. Monitors are never
|
||||
* freed so the pointer stays valid. */
|
||||
MXS_MONITOR* mon = monitor_server_in_use(srv);
|
||||
Monitor* mon = monitor_server_in_use(srv);
|
||||
if (mon && mon->state == MONITOR_STATE_RUNNING)
|
||||
{
|
||||
/* This server is monitored, in which case modifying any other status bit than Maintenance is
|
||||
@ -997,7 +997,7 @@ bool mxs::server_clear_status(SERVER* srv, int bit, string* errmsg_out)
|
||||
{
|
||||
// See server_set_status().
|
||||
bool written = false;
|
||||
MXS_MONITOR* mon = monitor_server_in_use(srv);
|
||||
Monitor* mon = monitor_server_in_use(srv);
|
||||
if (mon && mon->state == MONITOR_STATE_RUNNING)
|
||||
{
|
||||
if (bit & ~SERVER_MAINT)
|
||||
|
||||
Reference in New Issue
Block a user