mariadb/mysql-test/lib/My
Vladislav Vaintroub 2377eed362 Bug #47423 mtr connects to wrong database
The reason for the bug is that mysqtest as well as other client tools
running in test suite (mysqlbinlog, mysqldump) will first try to connect 
whatever database has created shared memory with default base name 
"MySQL" and use this. (Same effect could be seen on Unix if mtr would
not care to calculate "port" and "socket" parameter).
      
The fix ensures that all client tools and  running in mtr use unique  
per-database shared memory base parameters, so there is no possibility
to clash with already installed one. We use socket name for shared memory 
base (it's known to be unique). This shared-memory-base is written to the
MTR config file to the [client] and [mysqld] sections. Fix made also made 
sure all client tools understand and correctly handle --shared-memory-base.
Prior to this patch  it was not the case for  mysqltest, mysqlbinlog and 
mysql_client_test.
      
All new connections done from mtr scripts via connect() will by default 
set shared-memory-base. And finally, there is a possibility to force 
shared memory or pipe connection and overwrite shared memory/pipe base name
from within mtr scripts via optional PIPE or SHM modifier. This functionality
was manually backported from 6.0
(original patch  http://lists.mysql.com/commits/74749)
2009-11-03 01:19:37 +01:00
..
File Bug #43570 MTR2 hangs when test fails and named pipe created 2009-04-01 16:23:10 +02:00
SafeProcess 3rd merge from main 2009-09-03 08:44:22 +02:00
Config.pm WL#4350 Options in my.cnf style config file should not start with -- 2008-09-05 15:31:09 +02:00
ConfigFactory.pm Bug #47423 mtr connects to wrong database 2009-11-03 01:19:37 +01:00
CoreDump.pm change order of cdb parameters to workaround a bug , where command (-c) is not evaluated if -i ,-y or -z contains an invalid path. 2009-03-24 14:44:21 +01:00
Find.pm Versional testing support 2008-09-20 16:51:31 +03:00
Handles.pm WL4189 Add Handles.pm and use it from My::File::Path to show open handles. Rewrite rmtree to use File::Find so we can get better debug printouts when something fails 2008-10-06 19:51:33 +02:00
Options.pm Add support for running in parallel 2008-04-24 13:02:53 +02:00
Platform.pm Bug #45771 AIX and i5/OS Perl bug: check_socket_path_length in MTR fails 2009-08-06 09:30:53 +02:00
SafeProcess.pm Bug #44511 MTR2: add an option not to kill other servers when one from the group exits 2009-04-29 16:13:38 +02:00
SysInfo.pm WL#4189 Set parallel to 1 if running under vmware on windows 2008-10-11 17:30:26 +02:00
Test.pm Bug#40715 mtr fails when running the same test case in parallel threads 2008-11-14 11:49:12 +01:00