Fixed MM monitor build failure
The MM monitor was using wrong types of arguments to thread_start and thread_wait.
This commit is contained in:
parent
743a1b1037
commit
8fd515ec8b
@ -174,7 +174,7 @@ startMonitor(void *arg, void* opt)
|
||||
memset(handle->events, true, sizeof(handle->events));
|
||||
}
|
||||
|
||||
if (thread_start(handle->thread, monitorMain, mon) == NULL)
|
||||
if (thread_start(&handle->thread, monitorMain, mon) == NULL)
|
||||
{
|
||||
MXS_ERROR("Failed to start monitor thread for monitor '%s'.", mon->name);
|
||||
}
|
||||
@ -194,7 +194,7 @@ stopMonitor(void *arg)
|
||||
MM_MONITOR *handle = (MM_MONITOR *) mon->handle;
|
||||
|
||||
handle->shutdown = 1;
|
||||
thread_wait((void *) handle->thread);
|
||||
thread_wait(handle->thread);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user