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
cdca1131
Commit
cdca1131
authored
Jan 24, 2009
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#4189 mtr.pl v2
- Don't save ndb_*_fs directory after test failure
parent
24691742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+19
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
cdca1131
...
...
@@ -3632,6 +3632,17 @@ sub save_datadir_after_failure($$) {
}
sub
remove_ndbfs_from_ndbd_datadir
{
my
(
$ndbd_datadir
)
=
@_
;
# Remove the ndb_*_fs directory from ndbd.X/ dir
foreach
my
$ndbfs_dir
(
glob
("
$ndbd_datadir
/ndb_*_fs
")
)
{
next
unless
-
d
$ndbfs_dir
;
# Skip if not a directory
rmtree
(
$ndbfs_dir
);
}
}
sub
after_failure
($)
{
my
(
$tinfo
)
=
@_
;
...
...
@@ -3657,6 +3668,14 @@ sub after_failure ($) {
if
(
clusters
()
)
{
foreach
my
$cluster
(
clusters
()
)
{
my
$cluster_dir
=
"
$opt_vardir
/
"
.
$cluster
->
{
name
};
# Remove the fileystem of each ndbd
foreach
my
$ndbd
(
in_cluster
(
$cluster
,
ndbds
())
)
{
my
$ndbd_datadir
=
$ndbd
->
value
("
DataDir
");
remove_ndbfs_from_ndbd_datadir
(
$ndbd_datadir
);
}
save_datadir_after_failure
(
$cluster_dir
,
$save_dir
);
}
}
...
...
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