From 0200ca4e2415bea7f36746cfcd8bbd437c52ab0c Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Mon, 16 Jun 2014 00:31:14 +0300 Subject: [PATCH] Some things weren't switched off from product build. --- server/modules/routing/readwritesplit/readwritesplit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index 9e7ef2cc0..2d3b01a7e 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -2667,7 +2667,9 @@ static void handleError ( ROUTER_CLIENT_SES* rses = (ROUTER_CLIENT_SES *)router_session; CHK_DCB(backend_dcb); +#if defined(SS_DEBUG) backend_dcb->dcb_errhandle_called = true; +#endif session = backend_dcb->session; CHK_SESSION(session); @@ -2770,6 +2772,7 @@ static void print_error_packet( GWBUF* buf, DCB* dcb) { +#if defined(SS_DEBUG) if (buf->gwbuf_type == GWBUF_TYPE_MYSQL) { while (gwbuf_length(buf) > 0) @@ -2815,6 +2818,7 @@ static void print_error_packet( { while ((buf = gwbuf_consume(buf, GWBUF_LENGTH(buf))) != NULL); } +#endif } static int router_get_servercount(