From f3c83770903151a0a3b53593c3e05fa0af94cd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 31 Mar 2017 13:26:57 +0300 Subject: [PATCH] Route statements in larger batches The RCAP_TYPE_STMT_OUTPUT is not used in its previous form. It can be altered to route only complete packets back to the client. This allows routers to do safer parsing on the results. --- server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c b/server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c index 6276cae0f..5da4d7797 100644 --- a/server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c +++ b/server/modules/protocol/MySQL/MySQLBackend/mysql_backend.c @@ -778,11 +778,6 @@ gw_read_and_write(DCB *dcb) return 0; } } - else if (rcap_type_required(capabilities, RCAP_TYPE_STMT_OUTPUT) && - !rcap_type_required(capabilities, RCAP_TYPE_RESULTSET_OUTPUT)) - { - stmt = modutil_get_next_MySQL_packet(&read_buffer); - } else { stmt = read_buffer;