Merge branch 'release-1.0beta-refresh' of github.com:skysql/MaxScale into release-1.0beta-refresh
This commit is contained in:
@ -447,13 +447,15 @@ size_t nrounds = 0;
|
||||
}
|
||||
/** Wait base interval */
|
||||
thread_millisleep(MON_BASE_INTERVAL_MS);
|
||||
nrounds += 1;
|
||||
|
||||
/** If monitor interval time isn't consumed skip checks */
|
||||
if ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
if (nrounds != 0 &&
|
||||
(nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
{
|
||||
nrounds += 1;
|
||||
continue;
|
||||
}
|
||||
nrounds += 1;
|
||||
master_id = -1;
|
||||
ptr = handle->databases;
|
||||
|
||||
|
||||
@ -611,13 +611,15 @@ size_t nrounds = 0;
|
||||
}
|
||||
/** Wait base interval */
|
||||
thread_millisleep(MON_BASE_INTERVAL_MS);
|
||||
nrounds += 1;
|
||||
|
||||
/** If monitor interval time isn't consumed skip checks */
|
||||
if ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
if (nrounds != 0 &&
|
||||
(nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
{
|
||||
nrounds += 1;
|
||||
continue;
|
||||
}
|
||||
nrounds += 1;
|
||||
/* reset num_servers */
|
||||
num_servers = 0;
|
||||
|
||||
|
||||
@ -445,13 +445,15 @@ size_t nrounds = 0;
|
||||
|
||||
/** Wait base interval */
|
||||
thread_millisleep(MON_BASE_INTERVAL_MS);
|
||||
nrounds += 1;
|
||||
|
||||
/** If monitor interval time isn't consumed skip checks */
|
||||
if ((nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
if (nrounds != 0 &&
|
||||
(nrounds*MON_BASE_INTERVAL_MS)%handle->interval != 0)
|
||||
{
|
||||
nrounds += 1;
|
||||
continue;
|
||||
}
|
||||
nrounds += 1;
|
||||
master_id = -1;
|
||||
ptr = handle->databases;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user