mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Refix the problem related to 'in single tran, but visit multi servers'
This commit is contained in:
parent
229c080cf0
commit
9aad33dc8c
@ -1731,10 +1731,14 @@ NETWORK_MYSQLD_PLUGIN_PROTO(proxy_get_server_conn_list)
|
||||
int server_unavailable = 0;
|
||||
if (!proxy_add_server_connection_array(con, &server_unavailable)) {
|
||||
record_last_backends_type(con);
|
||||
if (!server_unavailable) {
|
||||
return NETWORK_SOCKET_WAIT_FOR_EVENT;
|
||||
} else {
|
||||
if (con->xa_tran_conflict) {
|
||||
return NETWORK_SOCKET_ERROR;
|
||||
} else {
|
||||
if (!server_unavailable) {
|
||||
return NETWORK_SOCKET_WAIT_FOR_EVENT;
|
||||
} else {
|
||||
return NETWORK_SOCKET_ERROR;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
record_last_backends_type(con);
|
||||
|
Loading…
Reference in New Issue
Block a user