Added missing spinlock calls to all monitors.
This commit is contained in:
@ -494,12 +494,17 @@ static void
|
||||
monitorMain(void *arg)
|
||||
{
|
||||
MONITOR* mon = (MONITOR*)arg;
|
||||
MM_MONITOR *handle = (MM_MONITOR *)mon->handle;
|
||||
MM_MONITOR *handle;
|
||||
MONITOR_SERVERS *ptr;
|
||||
int detect_stale_master = handle->detectStaleMaster;
|
||||
int detect_stale_master;
|
||||
MONITOR_SERVERS *root_master;
|
||||
size_t nrounds = 0;
|
||||
|
||||
spinlock_acquire(&mon->lock);
|
||||
handle = (MM_MONITOR *)mon->handle;
|
||||
spinlock_release(&mon->lock);
|
||||
detect_stale_master = handle->detectStaleMaster;
|
||||
|
||||
if (mysql_thread_init())
|
||||
{
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
|
||||
Reference in New Issue
Block a user