From 48165bf5cda4f78fb1db4fe05339dc1b1ef705c8 Mon Sep 17 00:00:00 2001 From: vraatikka Date: Wed, 28 Aug 2013 23:25:27 +0300 Subject: [PATCH] Removed unused protocol_mutex and references to it. --- server/core/gateway_mysql_protocol.c | 1 - server/modules/include/mysql_client_server_protocol.h | 1 - server/modules/protocol/mysql_common.c | 1 - 3 files changed, 3 deletions(-) diff --git a/server/core/gateway_mysql_protocol.c b/server/core/gateway_mysql_protocol.c index 65ff4cf2e..4cf3faef8 100644 --- a/server/core/gateway_mysql_protocol.c +++ b/server/core/gateway_mysql_protocol.c @@ -70,7 +70,6 @@ MySQLProtocol *gw_mysql_init(MySQLProtocol *data) { } input->protocol_chk_top = CHK_NUM_PROTOCOL; input->protocol_chk_tail = CHK_NUM_PROTOCOL; - simple_mutex_init(&input->protocol_mutex, "MySQL Protocol mutex"); #ifdef MYSQL_CONN_DEBUG fprintf(stderr, "gw_mysql_init() called\n"); #endif diff --git a/server/modules/include/mysql_client_server_protocol.h b/server/modules/include/mysql_client_server_protocol.h index 6307b6e72..13aac23f5 100644 --- a/server/modules/include/mysql_client_server_protocol.h +++ b/server/modules/include/mysql_client_server_protocol.h @@ -114,7 +114,6 @@ typedef enum { */ typedef struct { skygw_chk_t protocol_chk_top; - simple_mutex_t protocol_mutex; int fd; /* The socket descriptor */ struct dcb *descriptor; /** The DCB of the socket * we are running on */ diff --git a/server/modules/protocol/mysql_common.c b/server/modules/protocol/mysql_common.c index f39bce925..4d5c031b3 100644 --- a/server/modules/protocol/mysql_common.c +++ b/server/modules/protocol/mysql_common.c @@ -65,7 +65,6 @@ MySQLProtocol *gw_mysql_init(MySQLProtocol *data) { } input->protocol_chk_top = CHK_NUM_PROTOCOL; input->protocol_chk_tail = CHK_NUM_PROTOCOL; - simple_mutex_init(&input->protocol_mutex, "MySQL Protocol mutex"); #ifdef MYSQL_CONN_DEBUG fprintf(stderr, "gw_mysql_init() called\n");