mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
When running with --valgrind and --debug send all the output from
mysqld and valgrind to tracefile.
This commit is contained in:
@@ -1217,6 +1217,19 @@ sub command_line_setup () {
|
|||||||
$path_ndb_testrun_log= "$opt_vardir/log/ndb_testrun.log";
|
$path_ndb_testrun_log= "$opt_vardir/log/ndb_testrun.log";
|
||||||
|
|
||||||
$path_snapshot= "$opt_tmpdir/snapshot_$opt_master_myport/";
|
$path_snapshot= "$opt_tmpdir/snapshot_$opt_master_myport/";
|
||||||
|
|
||||||
|
if ( $opt_valgrind and $opt_debug )
|
||||||
|
{
|
||||||
|
# When both --valgrind and --debug is selected, send
|
||||||
|
# all output to the trace file, making it possible to
|
||||||
|
# see the exact location where valgrind complains
|
||||||
|
foreach my $mysqld (@{$master}, @{$slave})
|
||||||
|
{
|
||||||
|
my $sidx= $mysqld->{idx} ? "$mysqld->{idx}" : "";
|
||||||
|
$mysqld->{path_myerr}=
|
||||||
|
"$opt_vardir/log/" . $mysqld->{type} . "$sidx.trace";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub datadir_list_setup () {
|
sub datadir_list_setup () {
|
||||||
|
Reference in New Issue
Block a user