mariadb/mysql-test/suite
Alfranio Correia f6eb9426ce BUG#43949 Initialization of slave produces a warning message in Valgrind
In order to define the --slave-load-tmpdir, the init_relay_log_file()
was calling fn_format(MY_PACK_FILENAME) which internally was indirectly
calling strmov_overlapp() (through pack_dirname) and the following
warning message was being printed out while running in Valgrind:
"source and destination overlap in strcpy".

We fixed the issue by removing the flag MY_PACK_FILENAME as it was not
necessary. In a nutshell, with this flag the function fn_format() tried
to replace a directory by either "~", "." or "..". However, we wanted
exactly to remove such strings.

In this patch, we also refactored the functions init_relay_log_file()
and check_temp_dir(). The former was refactored to call the fn_format()
with the flag MY_SAFE_PATH along with the MY_RETURN_REAL_PATH,  in order
to avoid issues with long directories and return an absolute path,
respectively. The flag MY_SAFE_UNPACK_FILENAME was removed too as it was
responsible for removing "~", "." or ".." only from the file parameter
and we wanted to remove such strings from the directory parameter in
the fn_format(). This result is stored in an rli variable, which is then
processed by the other function in order to verify if the directory exists
and if we are able to create files in it.


mysql-test/suite/rpl/t/rpl_slave_load_tmpdir_not_exist.test:
  Changed the output to make it consistent among different runs.
mysys/mf_format.c:
  Replaced a return for DBUG_RETURN.
2009-04-19 02:21:33 +01:00
..
binlog BUG#42640 mysqld crashes when unsafe statements are executed (STRICT_TRANS_TABLESmode) 2009-04-03 18:21:57 +00:00
bugs merged 5.1-main -> 5.1-bugteam 2009-01-30 15:44:49 +02:00
federated Merge 5.0-bugteam to 5.1-bugteam 2009-03-19 14:19:51 +05:30
funcs_1 merged 5.1-main -> 5.1-bugteam 2009-04-01 12:57:34 +03:00
funcs_2 Fix for Bug#40904 20 tests in 5.1 are disabled in a bad manner 2008-12-08 15:36:42 +01:00
ibmdb2i Importing test cases for IBMDB2I 2009-04-14 16:32:55 +05:30
im
jp fixed jp test failures 2009-02-02 14:42:33 +04:00
large_tests
manual
ndb Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
ndb_team Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
parts Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
rpl BUG#43949 Initialization of slave produces a warning message in Valgrind 2009-04-19 02:21:33 +01:00
rpl_ndb Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-16 17:36:14 -04:00
stress
sys_vars Fix belonging to bug#42838: Though this bug is only for 6.0 I put in some updated result files for 6.0 and this are the corrsponding resul files for 5.1, so that sys_vars should then run successfully also in 5.1. 2009-04-03 11:37:48 +02:00