From 18fbe566bdf7420fbd9b4a1a8bede76e351d3b95 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 3 May 2021 18:01:30 +0200 Subject: [PATCH] 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 --- mysql-test/lib/My/Debugger.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-test/lib/My/Debugger.pm b/mysql-test/lib/My/Debugger.pm index b769f41dace..5e04c070e7f 100644 --- a/mysql-test/lib/My/Debugger.pm +++ b/mysql-test/lib/My/Debugger.pm @@ -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"; }