diff --git a/lib/admin.lua b/lib/admin.lua index f67d66f..0ab28fe 100644 --- a/lib/admin.lua +++ b/lib/admin.lua @@ -59,10 +59,10 @@ function read_query(packet) type = proxy.MYSQL_TYPE_STRING }, { name = "type", type = proxy.MYSQL_TYPE_STRING }, - { name = "uuid", - type = proxy.MYSQL_TYPE_STRING }, - { name = "connected_clients", - type = proxy.MYSQL_TYPE_LONG }, + -- { name = "uuid", + -- type = proxy.MYSQL_TYPE_STRING }, + -- { name = "connected_clients", + -- type = proxy.MYSQL_TYPE_LONG }, --[[ { name = "cur_idle_connections", type = proxy.MYSQL_TYPE_LONG }, @@ -88,8 +88,8 @@ function read_query(packet) b.dst.name, -- configured backend address states[b.state + 1], -- the C-id is pushed down starting at 0 types[b.type + 1], -- the C-id is pushed down starting at 0 - b.uuid, -- the MySQL Server's UUID if it is managed - b.connected_clients -- currently connected clients + --b.uuid, -- the MySQL Server's UUID if it is managed + --b.connected_clients -- currently connected clients } --[[ @@ -133,10 +133,10 @@ function read_query(packet) type = proxy.MYSQL_TYPE_STRING }, { name = "type", type = proxy.MYSQL_TYPE_STRING }, - { name = "uuid", - type = proxy.MYSQL_TYPE_STRING }, - { name = "connected_clients", - type = proxy.MYSQL_TYPE_LONG }, + -- { name = "uuid", + -- type = proxy.MYSQL_TYPE_STRING }, + -- { name = "connected_clients", + -- type = proxy.MYSQL_TYPE_LONG }, } local states = { @@ -157,8 +157,8 @@ function read_query(packet) b.dst.name, -- configured backend address states[b.state + 1], -- the C-id is pushed down starting at 0 types[b.type + 1], -- the C-id is pushed down starting at 0 - b.uuid, -- the MySQL Server's UUID if it is managed - b.connected_clients -- currently connected clients + -- b.uuid, -- the MySQL Server's UUID if it is managed + -- b.connected_clients -- currently connected clients } elseif string.find(query:lower(), "^add%s+master%s+.+$") then local newserver = string.match(query:lower(), "^add%s+master%s+(.+)$") diff --git a/src/network-conn-pool-lua.c b/src/network-conn-pool-lua.c index e8227d4..7b076a4 100644 --- a/src/network-conn-pool-lua.c +++ b/src/network-conn-pool-lua.c @@ -126,7 +126,7 @@ int network_connection_pool_lua_add_connection(network_mysqld_con *con) { chassis_event_add_local(con->srv, &(con->server->event)); /* add a event, but stay in the same thread */ } - st->backend->connected_clients--; +// st->backend->connected_clients--; st->backend = NULL; st->backend_ndx = -1; @@ -324,7 +324,7 @@ network_socket *network_connection_pool_lua_swap(network_mysqld_con *con, int ba /* connect to the new backend */ st->backend = backend; - st->backend->connected_clients++; +// st->backend->connected_clients++; st->backend_ndx = backend_ndx; return send_sock;