Fix xa command truncated problems

This commit is contained in:
wangbin579 2018-08-16 16:15:35 +08:00
parent 3724a7ca7f
commit 027c7a3a4b
3 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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

View File

@ -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 **);