Update proxy-plugin.c

Fix prepare stmt problems
This commit is contained in:
Bin Wang 2019-05-09 14:02:06 +08:00 committed by GitHub
parent 3756ddb810
commit 91edf864c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1546,7 +1546,7 @@ network_read_query(network_mysqld_con *con, proxy_plugin_con_t *st)
change_stmt_id(con, stmt_id);
}
} else if (command == COM_QUERY) {
change_server_by_rw(con, backend_ndx);
change_server_by_rw(con, st->backend_ndx);
}
}