1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix perfschema.hostcache_ipv4_max_con

Also fix perfschema.hostcache_ipv6_max_con.
The test case makes use of a debug switch to execute some special code.
The code does hostname replacement. Every hostname sent during connect
phase becomes santa.claus.ipv4.example.com (or ipv6). This causes a
connection from root@localhost to fail, as root is not registered as
santa claus user. The failure is only apparent on Windows as Unix
systems make use of sockets, which bypass the name resolution check
entirely.
This commit is contained in:
Vicentiu Ciorbaru
2018-04-12 02:34:51 +03:00
parent 4c7a1a1b9e
commit 990283b65c
4 changed files with 28 additions and 28 deletions

View File

@ -180,13 +180,13 @@ set global max_user_connections = 0;
set global max_connections = 10;
flush user_resources;
connect (tmp_con1,localhost,root,,);
connect (tmp_con2,localhost,root,,);
connect (tmp_con3,localhost,root,,);
connect (tmp_con4,localhost,root,,);
connect (tmp_con5,localhost,root,,);
connect (tmp_con6,localhost,root,,);
connect (tmp_con7,localhost,root,,);
connect (tmp_con1,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con2,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con3,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con4,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con5,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con6,localhost,quota,,test,$MASTER_MYPORT,);
connect (tmp_con7,localhost,quota,,test,$MASTER_MYPORT,);
connect (con5a,"::1",quota,,test,$MASTER_MYPORT,);
select "Con4a is alive";