Skip to content

Commit 128b054

Browse files
committed
add 'set autocommit = OFF' support
1 parent de48e78 commit 128b054

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/proxy/proxy-plugin.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,6 @@ void modify_charset(GPtrArray* tokens, network_mysqld_con* con) {
12331233

12341234
void check_flags(GPtrArray* tokens, network_mysqld_con* con) {
12351235
con->is_in_select_calc_found_rows = FALSE;
1236-
*is_set_autocommit = FALSE;
12371236

12381237
sql_token** ts = (sql_token**)(tokens->pdata);
12391238
guint len = tokens->len;
@@ -1455,7 +1454,7 @@ NETWORK_MYSQLD_PLUGIN_PROTO(proxy_read_query) {
14551454

14561455
if (!con->is_in_transaction && !con->is_not_autocommit && g_hash_table_size(con->locks) == 0) {
14571456
if (type == COM_QUERY) {
1458-
if (is_write || is_set_autocommit) {
1457+
if (is_write ) {
14591458
backend_ndx = idle_rw(con);
14601459
} else {
14611460
backend_ndx = rw_split(tokens, con);

0 commit comments

Comments
 (0)