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
ab62b753
Commit
ab62b753
authored
Jun 02, 2017
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12042 Re-bootstrap the server if InnoDB options are incompatible
parent
c2ef0bb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
7 deletions
+36
-7
mysql-test/include/innodb_page_size.combinations
mysql-test/include/innodb_page_size.combinations
+8
-0
mysql-test/include/innodb_page_size.inc
mysql-test/include/innodb_page_size.inc
+4
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+24
-7
No files found.
mysql-test/include/innodb_page_size.combinations
0 → 100644
View file @
ab62b753
[16k]
innodb-page-size=16K
[8k]
innodb-page-size=8K
[4k]
innodb-page-size=4K
mysql-test/include/innodb_page_size.inc
0 → 100644
View file @
ab62b753
# The goal of including this file is to enable innodb_page_size combinations
# (see include/innodb_page_size.combinations)
--
source
include
/
have_innodb
.
inc
mysql-test/mysql-test-run.pl
View file @
ab62b753
...
...
@@ -3217,15 +3217,26 @@ sub mysql_server_start($) {
}
my
$mysqld_basedir
=
$mysqld
->
value
('
basedir
');
my
$extra_opts
=
get_extra_opts
(
$mysqld
,
$tinfo
);
if
(
$basedir
eq
$mysqld_basedir
)
{
if
(
!
$opt_start_dirty
)
# If dirty, keep possibly grown system db
{
# Copy datadir from installed system db
my
$path
=
(
$opt_parallel
==
1
)
?
"
$opt_vardir
"
:
"
$opt_vardir
/..
";
my
$install_db
=
"
$path
/install.db
";
copytree
(
$install_db
,
$datadir
)
if
-
d
$install_db
;
mtr_error
("
Failed to copy system db to '
$datadir
'
")
unless
-
d
$datadir
;
# Some InnoDB options are incompatible with the default bootstrap.
# If they are used, re-bootstrap
if
(
$extra_opts
and
"
@
$extra_opts
"
=~
/--innodb[-_](?:page[-_]size|checksum[-_]algorithm|undo[-_]tablespaces|log[-_]group[-_]home[-_]dir|data[-_]home[-_]dir)/
)
{
mysql_install_db
(
$mysqld
,
undef
,
$extra_opts
);
}
else
{
# Copy datadir from installed system db
my
$path
=
(
$opt_parallel
==
1
)
?
"
$opt_vardir
"
:
"
$opt_vardir
/..
";
my
$install_db
=
"
$path
/install.db
";
copytree
(
$install_db
,
$datadir
)
if
-
d
$install_db
;
mtr_error
("
Failed to copy system db to '
$datadir
'
")
unless
-
d
$datadir
;
}
}
}
else
...
...
@@ -3264,7 +3275,6 @@ sub mysql_server_start($) {
if
(
!
$opt_embedded_server
)
{
my
$extra_opts
=
get_extra_opts
(
$mysqld
,
$tinfo
);
mysqld_start
(
$mysqld
,
$extra_opts
);
# Save this test case information, so next can examine it
...
...
@@ -3488,7 +3498,7 @@ sub default_mysqld {
sub
mysql_install_db
{
my
(
$mysqld
,
$datadir
)
=
@_
;
my
(
$mysqld
,
$datadir
,
$extra_opts
)
=
@_
;
my
$install_datadir
=
$datadir
||
$mysqld
->
value
('
datadir
');
my
$install_basedir
=
$mysqld
->
value
('
basedir
');
...
...
@@ -3529,6 +3539,13 @@ sub mysql_install_db {
mtr_add_arg
(
$args
,
$extra_opt
);
}
}
# InnoDB options can come not only from the command line, but also
# from option files or combinations
foreach
my
$extra_opt
(
@$extra_opts
)
{
if
(
$extra_opt
=~
/--innodb/
)
{
mtr_add_arg
(
$args
,
$extra_opt
);
}
}
# If DISABLE_GRANT_OPTIONS is defined when the server is compiled (e.g.,
# configure --disable-grant-options), mysqld will not recognize the
...
...
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