MXS-497: Multi-statement queries are always routed to the master

This will prevent the routing of queries that modify data to the slaves.

In the future a more intricate solution can done where all the statements
are parsed and the destination is resolved based on the actual contents.
This commit is contained in:
Markus Makela
2016-02-18 00:17:46 +02:00
parent b88d66357e
commit ac007fa8f5
3 changed files with 38 additions and 20 deletions

View File

@ -67,5 +67,6 @@ GWBUF* modutil_create_mysql_err_msg(int packet_number,
const char *msg);
int modutil_count_signal_packets(GWBUF*,int,int,int*);
mxs_pcre2_result_t modutil_mysql_wildcard_match(const char* pattern, const char* string);
void* strnchr_esc(char* ptr, char c, int len);
#endif