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
284f28d7
Commit
284f28d7
authored
Jan 08, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember dynamically set options as started
parent
5a026a86
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
mysql-test/lib/My/Options.pm
mysql-test/lib/My/Options.pm
+6
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+3
-5
No files found.
mysql-test/lib/My/Options.pm
View file @
284f28d7
...
...
@@ -168,9 +168,14 @@ sub toSQL {
foreach
my
$option
(
@options
)
{
my
(
$name
,
$value
)
=
_split_option
(
$option
);
#print "name: $name\n";
#print "value: $value\n";
if
(
$name
=~
/^O, (.*)/
){
push
(
@sql
,
"
SET GLOBAL $1=
$value
");
}
else
{
}
elsif
(
$name
=~
/^set-variable=(.*)/
){
push
(
@sql
,
"
SET GLOBAL $1=
$value
");
}
else
{
my
$sql_name
=
$name
;
$sql_name
=~
s/-/_/g
;
push
(
@sql
,
"
SET GLOBAL
$sql_name
=
$value
");
...
...
mysql-test/mysql-test-run.pl
View file @
284f28d7
...
...
@@ -2833,16 +2833,14 @@ sub server_need_restart {
my
$query
=
My::Options::
toSQL
(
@diff_opts
);
mtr_verbose
("
Attempting dynamic switch '
$query
'
");
if
(
run_query
(
$tinfo
,
$server
,
$query
)){
mtr_verbose
("
Restart: Dynamic switch failed
");
return
1
;
}
else
{
mtr_verbose
("
Restart: running with different options '
"
.
join
("
",
@
{
$extra_opts
})
.
"
' != '
"
.
join
("
",
@
{
$server
->
{'
started_opts
'}})
.
"
'
"
);
return
1
;
}
# Remember the dynamically set options
$server
->
{'
started_opts
'}
=
$extra_opts
;
}
}
...
...
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