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
cf946cd0
Commit
cf946cd0
authored
Jan 14, 2011
by
Sven Sandberg
Browse files
Options
Browse Files
Download
Plain Diff
merged BUG#59063 (backport from trunk) from 5.1 to 5.5
parents
3bb2abbc
d3ea6f9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
mysql-test/include/rpl_start_server.inc
mysql-test/include/rpl_start_server.inc
+9
-1
mysql-test/include/rpl_stop_server.inc
mysql-test/include/rpl_stop_server.inc
+3
-1
No files found.
mysql-test/include/rpl_start_server.inc
View file @
cf946cd0
...
@@ -45,7 +45,15 @@ if ($rpl_server_parameters)
...
@@ -45,7 +45,15 @@ if ($rpl_server_parameters)
--
source
include
/
rpl_connection
.
inc
--
source
include
/
rpl_connection
.
inc
# Write file to make mysql-test-run.pl start up the server again
# Write file to make mysql-test-run.pl start up the server again
--
exec
echo
"
$_rpl_start_server_command
"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$rpl_server_number
.
expect
--
let
WRITE_TO_FILE
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$rpl_server_number
.
expect
--
let
WRITE_TO_VAR
=
$_rpl_start_server_command
perl
;
my
$file
=
$ENV
{
'WRITE_TO_FILE'
};
my
$var
=
$ENV
{
'WRITE_TO_VAR'
};
open
WRITE_FILE
,
">>
$file
"
or
die
"Error opening
$file
: $!"
;
print
WRITE_FILE
$var
,
"
\n
"
or
die
"Error appending to
$file
: $!"
;
close
WRITE_FILE
or
die
"Error closing
$file
: $!"
;
EOF
--
source
include
/
rpl_reconnect
.
inc
--
source
include
/
rpl_reconnect
.
inc
...
...
mysql-test/include/rpl_stop_server.inc
View file @
cf946cd0
...
@@ -44,7 +44,9 @@ if ($rpl_debug)
...
@@ -44,7 +44,9 @@ if ($rpl_debug)
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# it until it's told to
# it until it's told to
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$rpl_server_number
.
expect
--
append_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$rpl_server_number
.
expect
wait
EOF
# Send shutdown to the connected server and give
# Send shutdown to the connected server and give
# it 10 seconds to die before zapping it
# it 10 seconds to die before zapping it
...
...
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