Merge branch 'release-1.0beta-refresh' into cmake_build
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;
|
||||
|
||||
|
||||
@ -279,6 +279,7 @@ int n_connect = 0;
|
||||
client_dcb->session =
|
||||
session_alloc(dcb->session->service, client_dcb);
|
||||
maxscaled_pr = (MAXSCALED *)malloc(sizeof(MAXSCALED));
|
||||
maxscaled_pr->username = NULL;
|
||||
client_dcb->protocol = (void *)maxscaled_pr;
|
||||
|
||||
if (maxscaled_pr == NULL)
|
||||
@ -294,7 +295,6 @@ int n_connect = 0;
|
||||
}
|
||||
n_connect++;
|
||||
maxscaled_pr->state = MAXSCALED_STATE_LOGIN;
|
||||
maxscaled_pr->username = NULL;
|
||||
dcb_printf(client_dcb, "USER");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user