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
f201478c
Commit
f201478c
authored
Apr 28, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only run the "saved core limit" if the datadir was saved
parent
9e3c23c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-20
No files found.
mysql-test/mysql-test-run.pl
View file @
f201478c
...
...
@@ -404,32 +404,32 @@ sub run_test_server {
else
{
mtr_report
("
- saving '
$worker_savedir
/' to '
$savedir
/'
");
rename
(
$worker_savedir
,
$savedir
);
}
$num_saved_datadir
++
;
if
(
$opt_max_save_core
>
0
)
{
# Limit number of core files saved
find
({
no_chdir
=>
1
,
wanted
=>
sub
{
my
$core_file
=
$
File::Find::
name
;
my
$core_name
=
basename
(
$core_file
);
if
(
$opt_max_save_core
>
0
)
{
# Limit number of core files saved
find
({
no_chdir
=>
1
,
wanted
=>
sub
{
my
$core_file
=
$
File::Find::
name
;
my
$core_name
=
basename
(
$core_file
);
if
(
$core_name
=~
"
core*
"){
if
(
$num_saved_cores
>=
$opt_max_save_core
)
{
mtr_report
("
- deleting '
$core_name
'
",
if
(
$core_name
=~
"
core*
"){
if
(
$num_saved_cores
>=
$opt_max_save_core
)
{
mtr_report
("
- deleting '
$core_name
'
",
"
(
$num_saved_cores
/
$opt_max_save_core
)
");
unlink
("
$core_file
");
}
else
{
mtr_report
("
- found '
$core_name
'
",
"
(
$num_saved_cores
/
$opt_max_save_core
)
");
unlink
("
$core_file
");
}
else
{
mtr_report
("
- found '
$core_name
'
",
"
(
$num_saved_cores
/
$opt_max_save_core
)
");
}
++
$num_saved_cores
;
}
++
$num_saved_cores
;
}
}
},
$savedir
);
}
,
$savedir
);
}
}
$num_saved_datadir
++
;
if
(
!
$opt_force
)
{
# Test has failed, force is off
...
...
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