Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3c66250e
Commit
3c66250e
authored
Oct 12, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unhandled exception in mysql-test-run.pl, creating a dir that already exist
parent
71cb0e8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
18 deletions
+12
-18
mysql-test/lib/mtr_process.pl
mysql-test/lib/mtr_process.pl
+0
-13
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+12
-5
No files found.
mysql-test/lib/mtr_process.pl
View file @
3c66250e
...
...
@@ -339,19 +339,6 @@ sub mtr_kill_leftovers () {
mtr_report
("
Killing Possible Leftover Processes
");
mtr_debug
("
mtr_kill_leftovers(): started.
");
mkpath
("
$::opt_vardir/log
");
# Needed for mysqladmin log
# Stop or kill Instance Manager and all its children. If we failed to do
# that, we can only abort -- there is nothing left to do.
# mtr_error("Failed to stop Instance Manager.")
# unless mtr_im_stop($::instance_manager);
# Start shutdown of masters and slaves. Don't touch IM-managed mysqld
# instances -- they should be stopped by mtr_im_stop().
mtr_debug
("
Shutting down mysqld-instances...
");
my
@kill_pids
;
my
%
admin_pids
;
...
...
mysql-test/mysql-test-run.pl
View file @
3c66250e
...
...
@@ -310,7 +310,7 @@ sub command_line_setup ();
sub
datadir_setup
();
sub
executable_setup
();
sub
environment_setup
();
sub
kill_running_server
();
sub
kill_running_server
s
();
sub
cleanup_stale_files
();
sub
check_ssl_support
($);
sub
check_running_as_root
();
...
...
@@ -1802,7 +1802,7 @@ sub handle_int_signal () {
#
##############################################################################
sub
kill_running_server
()
{
sub
kill_running_server
s
()
{
if
(
$opt_fast
or
$glob_use_embedded_server
)
{
...
...
@@ -1820,6 +1820,13 @@ sub kill_running_server () {
# started from this run of the script, this is terminating
# leftovers from previous runs.
if
(
!
-
d
$opt_vardir
)
{
# The "var" dir does not exist already
# the processes that mtr_kill_leftovers start will write
# their log files to var/log so it should be created
mkpath
("
$opt_vardir
/log
");
}
mtr_kill_leftovers
();
}
}
...
...
@@ -2416,9 +2423,9 @@ sub initialize_servers () {
if
(
!
$glob_use_running_server
)
{
kill_running_server
();
kill_running_server
s
();
unless
(
$opt_start_dirty
)
if
(
!
$opt_start_dirty
)
{
cleanup_stale_files
();
mysql_install_db
();
...
...
@@ -3782,7 +3789,7 @@ sub run_testcase_stop_servers($$$) {
#
# run_testcase_start_servers
#
# Start the servers neede by this test case
# Start the servers neede
d
by this test case
#
# RETURN
# 0 OK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment