mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user