mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
Fix xa for partition
This commit is contained in:
parent
c47251c25c
commit
a6e2da4b8a
@ -1605,11 +1605,13 @@ proxy_add_server_connection_array(network_mysqld_con *con, int *server_unavailab
|
|||||||
GString *super_group;
|
GString *super_group;
|
||||||
|
|
||||||
if (con->srv->is_partition_mode) {
|
if (con->srv->is_partition_mode) {
|
||||||
|
shard_plugin_con_t *st = con->plugin_con_state;
|
||||||
|
sql_context_t *context = st->sql_context;
|
||||||
super_group = partition_get_super_group();
|
super_group = partition_get_super_group();
|
||||||
last_group = NULL;
|
last_group = NULL;
|
||||||
groups = 0;
|
groups = 0;
|
||||||
if (plan->groups->len > 1) {
|
if (plan->groups->len > 1) {
|
||||||
if (!con->is_read_ro_server_allowed) {
|
if (context->stmt_type != STMT_SELECT) {
|
||||||
con->partition_dist_tran = 1;
|
con->partition_dist_tran = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user