mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-30 02:47:35 +08:00
Fix xa command truncated problems
This commit is contained in:
parent
3724a7ca7f
commit
027c7a3a4b
@ -1692,7 +1692,7 @@ check_user_consistant(network_mysqld_con *con)
|
||||
static void
|
||||
build_xa_end_command(network_mysqld_con *con, server_session_t *ss, int first)
|
||||
{
|
||||
char buffer[64];
|
||||
char buffer[XA_CMD_BUF_LEN];
|
||||
|
||||
snprintf(buffer, sizeof(buffer), "XA END %s", con->xid_str);
|
||||
|
||||
|
@ -87,7 +87,6 @@
|
||||
#endif
|
||||
|
||||
#define XA_BUF_LEN 2048
|
||||
#define XA_CMD_BUF_LEN 128
|
||||
#define E_NET_CONNRESET ECONNRESET
|
||||
#define E_NET_CONNABORTED ECONNABORTED
|
||||
#define E_NET_INPROGRESS EINPROGRESS
|
||||
|
@ -42,6 +42,8 @@
|
||||
|
||||
#include "network-exports.h"
|
||||
|
||||
#define XA_CMD_BUF_LEN 128
|
||||
|
||||
NETWORK_API network_socket_retval_t do_read_auth(network_mysqld_con *, GHashTable *, GHashTable *);
|
||||
NETWORK_API network_socket_retval_t do_connect_cetus(network_mysqld_con *, network_backend_t **, int *);
|
||||
NETWORK_API network_socket_retval_t plugin_add_backends(chassis *, gchar **, gchar **);
|
||||
|
Loading…
Reference in New Issue
Block a user