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
a135e02b
Commit
a135e02b
authored
Oct 05, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge with 5.1
parents
d99cdfdb
53e7534b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
28 deletions
+10
-28
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-27
mysql-test/valgrind.supp
mysql-test/valgrind.supp
+9
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
a135e02b
...
...
@@ -2871,7 +2871,6 @@ sub mysql_server_start($) {
}
if
(
-
d
$datadir
)
{
preserve_error_log
(
$mysqld
);
mtr_verbose
("
- removing '
$datadir
'
");
rmtree
(
$datadir
);
}
...
...
@@ -2900,7 +2899,6 @@ sub mysql_server_start($) {
unless
-
d
$datadir
;
}
restore_error_log
(
$mysqld
);
# Create the servers tmpdir
my
$tmpdir
=
$mysqld
->
value
('
tmpdir
');
...
...
@@ -4218,30 +4216,6 @@ sub run_testcase ($$) {
}
# We want to preserve the error log between server restarts, as it may contain
# valuable debugging information even if there is no test failure recorded.
sub
_preserve_error_log_names
{
my
(
$mysqld
)
=
@_
;
my
$error_log_file
=
$mysqld
->
if_exist
('
#log-error
');
return
(
undef
,
undef
)
unless
$error_log_file
;
my
$error_log_dir
=
dirname
(
$error_log_file
);
my
$save_name
=
$error_log_dir
.
"
/../
"
.
$mysqld
->
name
()
.
"
.error.log
";
return
(
$error_log_file
,
$save_name
);
}
sub
preserve_error_log
{
my
(
$mysqld
)
=
@_
;
my
(
$error_log_file
,
$save_name
)
=
_preserve_error_log_names
(
$mysqld
);
rename
(
$error_log_file
,
$save_name
)
if
$save_name
;
# Ignore any errors, as it's just a best-effort to keep the log if possible.
}
sub
restore_error_log
{
my
(
$mysqld
)
=
@_
;
my
(
$error_log_file
,
$save_name
)
=
_preserve_error_log_names
(
$mysqld
);
rename
(
$save_name
,
$error_log_file
)
if
$save_name
;
}
# Keep track of last position in mysqld error log where we scanned for
# warnings, so we can attribute any warnings found to the correct test
# suite or server restart.
...
...
@@ -4758,7 +4732,6 @@ sub clean_datadir {
for
(
all_servers
())
{
preserve_error_log
(
$_
);
# or at least, try to
my
$dir
=
"
$opt_vardir
/
"
.
$_
->
{
name
};
mtr_verbose
("
- removing '
$dir
'
");
rmtree
(
$dir
);
...
...
mysql-test/valgrind.supp
View file @
a135e02b
...
...
@@ -395,6 +395,15 @@
fun:_Z8udf_freev
}
{
dlsym memory loss from udf_free on SuSE 11.1 x64 variant 2
Memcheck:Leak
fun:calloc
obj:/lib*/ld-*.so
fun:dlclose
fun:udf_free
}
{
dlclose memory loss from plugin variant 1
Memcheck:Leak
...
...
sql/mysqld.cc
View file @
a135e02b
...
...
@@ -7652,7 +7652,7 @@ each time the SQL thread starts.",
"Define threads usage for handling queries: "
"one-thread-per-connection"
#if HAVE_POOL_OF_THREADS == 1
", pool-of-threads"
", pool-of-threads
"
#endif
"or no-threads."
,
&
opt_thread_handling
,
&
opt_thread_handling
,
...
...
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