Some things weren't switched off from product build.

This commit is contained in:
VilhoRaatikka
2014-06-16 00:31:14 +03:00
parent 5bcae64538
commit 0200ca4e24

View File

@ -2667,7 +2667,9 @@ static void handleError (
ROUTER_CLIENT_SES* rses = (ROUTER_CLIENT_SES *)router_session; ROUTER_CLIENT_SES* rses = (ROUTER_CLIENT_SES *)router_session;
CHK_DCB(backend_dcb); CHK_DCB(backend_dcb);
#if defined(SS_DEBUG)
backend_dcb->dcb_errhandle_called = true; backend_dcb->dcb_errhandle_called = true;
#endif
session = backend_dcb->session; session = backend_dcb->session;
CHK_SESSION(session); CHK_SESSION(session);
@ -2770,6 +2772,7 @@ static void print_error_packet(
GWBUF* buf, GWBUF* buf,
DCB* dcb) DCB* dcb)
{ {
#if defined(SS_DEBUG)
if (buf->gwbuf_type == GWBUF_TYPE_MYSQL) if (buf->gwbuf_type == GWBUF_TYPE_MYSQL)
{ {
while (gwbuf_length(buf) > 0) while (gwbuf_length(buf) > 0)
@ -2815,6 +2818,7 @@ static void print_error_packet(
{ {
while ((buf = gwbuf_consume(buf, GWBUF_LENGTH(buf))) != NULL); while ((buf = gwbuf_consume(buf, GWBUF_LENGTH(buf))) != NULL);
} }
#endif
} }
static int router_get_servercount( static int router_get_servercount(