From 3378edc4d31d635427bacb4db7bf6e083281e791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 25 Jan 2017 18:02:37 +0200 Subject: [PATCH] Route COM_SET_OPTION to all servers This fixes problems with multi-statement execution which is only enabled when the corresponding option is present. --- server/modules/routing/readwritesplit/rwsplit_tmp_table_multi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/modules/routing/readwritesplit/rwsplit_tmp_table_multi.c b/server/modules/routing/readwritesplit/rwsplit_tmp_table_multi.c index 8d110649d..01b3cc16a 100644 --- a/server/modules/routing/readwritesplit/rwsplit_tmp_table_multi.c +++ b/server/modules/routing/readwritesplit/rwsplit_tmp_table_multi.c @@ -380,6 +380,7 @@ determine_query_type(GWBUF *querybuf, int packet_type, bool non_empty_packet) case MYSQL_COM_DEBUG: /*< 0d all servers dump debug info to stdout */ case MYSQL_COM_PING: /*< 0e all servers are pinged */ case MYSQL_COM_CHANGE_USER: /*< 11 all servers change it accordingly */ + case MYSQL_COM_SET_OPTION: /*< 1b send options to all servers */ qtype = QUERY_TYPE_SESSION_WRITE; break;