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
8b82c738
Commit
8b82c738
authored
Jan 08, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-mtr-win
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-mtr
parents
5c1dba67
284f28d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
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
mysql-test/t/events_restart_phase2-master.opt
mysql-test/t/events_restart_phase2-master.opt
+1
-1
No files found.
mysql-test/lib/My/Options.pm
View file @
8b82c738
...
...
@@ -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 @
8b82c738
...
...
@@ -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
;
}
}
...
...
mysql-test/t/events_restart_phase2-master.opt
View file @
8b82c738
--event-scheduler=on
--event-scheduler=on
--force-restart
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