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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5eb114bb
Commit
5eb114bb
authored
Mar 06, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused "#!remove_datadir"
Cleanup BACKUP dir from clusters datadir in case of test failure
parent
7a691394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+8
-14
No files found.
mysql-test/mysql-test-run.pl
View file @
5eb114bb
...
@@ -2573,13 +2573,15 @@ sub after_test_failure ($) {
...
@@ -2573,13 +2573,15 @@ sub after_test_failure ($) {
{
{
foreach
my
$ndbd
(
ndbds
(
$cluster
)
)
foreach
my
$ndbd
(
ndbds
(
$cluster
)
)
{
{
my
$datadir
=
$ndbd
->
value
('
DataDir
');
my
$data_dir
=
$ndbd
->
value
('
DataDir
');
foreach
my
$fs_dir
(
glob
("
$datadir
/ndb_*_fs
")
)
{
foreach
my
$fs_dir
(
glob
("
$data_dir
/ndb_*_fs
")
)
{
if
(
-
d
$fs_dir
)
{
rmtree
(
$fs_dir
);
rmtree
(
$fs_dir
);
mtr_debug
("
Removing '
$fs_dir
'
");
mtr_debug
("
Removing '
$fs_dir
'
");
}
}
}
my
$backup_dir
=
$ndbd
->
value
('
BackupDataDir
');
rmtree
("
$backup_dir
/BACKUP
");
mtr_debug
("
Removing '
$backup_dir
'
");
}
}
}
}
}
}
...
@@ -3009,14 +3011,6 @@ sub stop_servers($$) {
...
@@ -3009,14 +3011,6 @@ sub stop_servers($$) {
foreach
my
$server
(
@servers
)
foreach
my
$server
(
@servers
)
{
{
# Remove datadir
if
(
$server
->
option
('
#!remove-datadir
')
)
{
my
$datadir
=
$server
->
value
('
datadir
');
mtr_debug
("
Removing '
$datadir
'
");
rmtree
(
$datadir
);
}
# Mark server as stopped
# Mark server as stopped
$server
->
{
proc
}
=
undef
;
$server
->
{
proc
}
=
undef
;
...
...
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