Skip to content
Permalink
Browse files
mtr --gdb='commands' and restarts
if mysqld is restarted during a test, the debugger script
should be reused or overwritten, but not appended to the existing file
  • Loading branch information
vuvova committed May 8, 2021
1 parent af781f1 commit 18fbe56
Showing 1 changed file with 1 addition and 1 deletion.
@@ -158,7 +158,7 @@ sub do_args($$$$$) {

my $script = join "\n", @params;
if ($v->{script}) {
::mtr_tofile($vars{script}, subst($v->{script}, %vars)."\n".$script);
::mtr_tonewfile($vars{script}, subst($v->{script}, %vars)."\n".$script);
} elsif ($script) {
die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n";
}

0 comments on commit 18fbe56

Please sign in to comment.