Commit 990283b6 authored by Vicentiu Ciorbaru's avatar Vicentiu Ciorbaru

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.
parent 4c7a1a1b
......@@ -563,13 +563,13 @@ disconnect con4c;
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,"127.0.0.1",quota,,test,$MASTER_MYPORT,;
select "Con4a is alive";
Con4a is alive
......
......@@ -563,13 +563,13 @@ disconnect con4c;
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";
Con4a is alive
......
......@@ -179,13 +179,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,"127.0.0.1",quota,,test,$MASTER_MYPORT,);
select "Con4a is alive";
......
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment