Skip to content

Commit

Permalink
send COM_SET_OPTION to slave
Browse files Browse the repository at this point in the history
  • Loading branch information
Qihoo360 committed Jan 9, 2014
1 parent a05dc24 commit 76fba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/proxy/proxy-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ NETWORK_MYSQLD_PLUGIN_PROTO(proxy_read_query) {
//g_mutex_lock(&mutex);
send_sock = network_connection_pool_lua_swap(con, backend_ndx);
//g_mutex_unlock(&mutex);
} else if (type == COM_INIT_DB) {
} else if (type == COM_INIT_DB || type == COM_SET_OPTION) {
backend_ndx = wrr_ro(con);
//g_mutex_lock(&mutex);
send_sock = network_connection_pool_lua_swap(con, backend_ndx);
Expand Down

0 comments on commit 76fba41

Please sign in to comment.