dcb.c:dcb_process_zombies:added new parameter which tells what DCB the thread will use after calling dcb_process_zombies. Thus, processing that DCB is skipped.
readwritesplit.c:routeQuery:removed double free call for query buffer.
This commit is contained in:
VilhoRaatikka
2014-09-17 18:02:44 +03:00
parent f0b358bea6
commit 0f3db1c091
4 changed files with 34 additions and 15 deletions

View File

@ -633,12 +633,12 @@ DCB *zombies = NULL;
} /*< for */
no_op = FALSE;
}
process_zombies:
process_zombies:
if (thread_data)
{
thread_data[thread_id].state = THREAD_ZPROCESSING;
}
zombies = dcb_process_zombies(thread_id);
zombies = dcb_process_zombies(thread_id, NULL);
if (zombies == NULL) {
process_zombies_only = false;