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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
af585cf4
Commit
af585cf4
authored
Mar 12, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also copy [mysqld] section to [embedded]
parent
4458b5fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
mysql-test/include/default_mysqld.cnf
mysql-test/include/default_mysqld.cnf
+1
-1
mysql-test/lib/My/ConfigFactory.pm
mysql-test/lib/My/ConfigFactory.pm
+7
-2
No files found.
mysql-test/include/default_mysqld.cnf
View file @
af585cf4
...
...
@@ -15,7 +15,7 @@ max_heap_table_size= 1M
loose-innodb_data_file_path= ibdata1:10M:autoextend
s
et-variable= slave_net_
timeout=120
s
lave-net-
timeout=120
log-bin
mysql-test/lib/My/ConfigFactory.pm
View file @
af585cf4
...
...
@@ -349,22 +349,27 @@ sub post_check_client_groups {
#
# Generate [embedded] by copying the values
# needed from first [mysqld.<suffix>]
# needed from the default [mysqld] section
# and from first [mysqld.<suffix>]
#
sub
post_check_embedded_group
{
my
(
$self
,
$config
)
=
@_
;
return
unless
$self
->
{
ARGS
}
->
{
embedded
};
my
$mysqld
=
$config
->
group
('
mysqld
')
or
croak
"
Can't run with embedded, config has no default mysqld section
";
my
$first_mysqld
=
$config
->
first_like
('
mysqld.
')
or
croak
"
Can't run with embedded, config has no mysqld
";
my
@no_copy
=
(
'
log-error
',
# Embedded server writes stderr to mysqltest's log file
'
slave-net-timeout
',
# Embedded server are not build with replication
);
foreach
my
$option
(
$first_mysqld
->
options
()
)
{
foreach
my
$option
(
$
mysqld
->
options
(),
$
first_mysqld
->
options
()
)
{
# Don't copy options whose name is in "no_copy" list
next
if
grep
(
$option
->
name
()
eq
$_
,
@no_copy
);
...
...
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