Added debug logging for #615

This commit is contained in:
VilhoRaatikka 2014-11-14 20:48:33 +02:00
parent e35ad0c5d3
commit 8c1e7172f3
4 changed files with 16 additions and 0 deletions

View File

@ -1119,6 +1119,10 @@ dcb_close(DCB *dcb)
CHK_DCB(dcb);
LOGIF(LD, (skygw_log_write(LOGFILE_DEBUG,
"%lu [dcb_close]",
pthread_self())));
/*<
* dcb_close may be called for freshly created dcb, in which case
* it only needs to be freed.

View File

@ -1089,6 +1089,10 @@ gw_backend_close(DCB *dcb)
session = dcb->session;
CHK_SESSION(session);
LOGIF(LD, (skygw_log_write(LOGFILE_DEBUG,
"%lu [gw_backend_close]",
pthread_self())));
quitbuf = mysql_create_com_quit(NULL, 0);
gwbuf_set_type(quitbuf, GWBUF_TYPE_MYSQL);

View File

@ -1392,6 +1392,10 @@ gw_client_close(DCB *dcb)
CHK_PROTOCOL(protocol);
}
#endif
LOGIF(LD, (skygw_log_write(LOGFILE_DEBUG,
"%lu [gw_client_close]",
pthread_self())));
mysql_protocol_done(dcb);
session = dcb->session;

View File

@ -912,6 +912,10 @@ static void closeSession(
ROUTER_CLIENT_SES* router_cli_ses;
backend_ref_t* backend_ref;
LOGIF(LD, (skygw_log_write(LOGFILE_DEBUG,
"%lu [RWSplit:closeSession]",
pthread_self())));
/**
* router session can be NULL if newSession failed and it is discarding
* its connections and DCB's.