Added missing spinlock calls to all monitors.

This commit is contained in:
Markus Makela
2015-05-21 11:41:11 +03:00
parent 7dbc021149
commit 91bc7b2792
5 changed files with 29 additions and 8 deletions

View File

@ -346,10 +346,14 @@ static void
monitorMain(void *arg)
{
MONITOR* mon = arg;
MYSQL_MONITOR *handle = (MYSQL_MONITOR *)mon->handle;
MYSQL_MONITOR *handle;
MONITOR_SERVERS *ptr;
size_t nrounds = 0;
spinlock_acquire(&mon->lock);
handle = (MYSQL_MONITOR *)mon->handle;
spinlock_release(&mon->lock);
if (mysql_thread_init())
{
LOGIF(LE, (skygw_log_write_flush(