Fix to bug #678, http://bugs.skysql.com/show_bug.cgi?id=678
tee.c:routeQuery cloned partial MySQL packets to be routed to child router. Problems were due to the use of gwbuf_clone and modutil_MySQL_query which clone/examine only the first buffer from the buffer list which composes GWBUF. modutil.c: Added function modutil_MySQL_query_len which calculates MySQL packet length and the missing bytecount
This commit is contained in:
@ -410,12 +410,12 @@ BACKEND *master_host = NULL;
|
||||
LOGIF(LD, (skygw_log_write(
|
||||
LOGFILE_DEBUG,
|
||||
"%lu [newSession] Examine server in port %d with "
|
||||
"%d connections. Status is %d, "
|
||||
"%d connections. Status is %s, "
|
||||
"inst->bitvalue is %d",
|
||||
pthread_self(),
|
||||
inst->servers[i]->server->port,
|
||||
inst->servers[i]->current_connection_count,
|
||||
inst->servers[i]->server->status,
|
||||
STRSRVSTATUS(inst->servers[i]->server),
|
||||
inst->bitmask)));
|
||||
}
|
||||
|
||||
@ -971,7 +971,7 @@ static int handle_state_switch(DCB* dcb,DCB_REASON reason, void * routersession)
|
||||
SESSION* session = dcb->session;
|
||||
ROUTER_CLIENT_SES* rses = (ROUTER_CLIENT_SES*)routersession;
|
||||
SERVICE* service = session->service;
|
||||
ROUTER* router = service->router;
|
||||
ROUTER* router = (ROUTER *)service->router;
|
||||
|
||||
switch(reason)
|
||||
{
|
||||
|
Reference in New Issue
Block a user