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
ba96c5ae
Commit
ba96c5ae
authored
Sep 28, 2006
by
anozdrin/alik@alik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.0-rt -> 5.1-rt after-merge fixes.
parent
2c73dbfa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
30 deletions
+8
-30
mysql-test/lib/mtr_im.pl
mysql-test/lib/mtr_im.pl
+4
-4
mysql-test/lib/mtr_process.pl
mysql-test/lib/mtr_process.pl
+1
-23
mysql-test/r/im_daemon_life_cycle.result
mysql-test/r/im_daemon_life_cycle.result
+2
-2
mysql-test/t/im_daemon_life_cycle.imtest
mysql-test/t/im_daemon_life_cycle.imtest
+1
-1
No files found.
mysql-test/lib/mtr_im.pl
View file @
ba96c5ae
...
@@ -249,7 +249,7 @@ sub mtr_im_check_main_alive($) {
...
@@ -249,7 +249,7 @@ sub mtr_im_check_main_alive($) {
# Check that IM does not accept client connections.
# Check that IM does not accept client connections.
if
(
mtr_ping_
mysqld_server
(
$im
->
{'
port
'})
)
if
(
mtr_ping_
port
(
$im
->
{'
port
'})
)
{
{
mtr_debug
("
IM-main (port:
$im
->{port})
"
.
mtr_debug
("
IM-main (port:
$im
->{port})
"
.
"
is accepting connections.
");
"
is accepting connections.
");
...
@@ -338,7 +338,7 @@ sub mtr_im_check_mysqld_alive($) {
...
@@ -338,7 +338,7 @@ sub mtr_im_check_mysqld_alive($) {
# Check that mysqld does not accept client connections.
# Check that mysqld does not accept client connections.
if
(
mtr_ping_
mysqld_server
(
$mysqld_instance
->
{'
port
'})
)
if
(
mtr_ping_
port
(
$mysqld_instance
->
{'
port
'})
)
{
{
mtr_debug
("
Mysqld instance (port:
$mysqld_instance
->{port})
"
.
mtr_debug
("
Mysqld instance (port:
$mysqld_instance
->{port})
"
.
"
is accepting connections.
");
"
is accepting connections.
");
...
@@ -510,7 +510,7 @@ sub mtr_im_wait_for_connection($$$) {
...
@@ -510,7 +510,7 @@ sub mtr_im_wait_for_connection($$$) {
{
{
mtr_debug
("
Trying to connect to IM (
$cur_attempt
of
$total_attempts
)...
");
mtr_debug
("
Trying to connect to IM (
$cur_attempt
of
$total_attempts
)...
");
if
(
mtr_ping_
mysqld_server
(
$im
->
{'
port
'})
)
if
(
mtr_ping_
port
(
$im
->
{'
port
'})
)
{
{
mtr_debug
("
IM is accepting connections
"
.
mtr_debug
("
IM is accepting connections
"
.
"
on port
$im
->{port}.
");
"
on port
$im
->{port}.
");
...
@@ -543,7 +543,7 @@ sub mtr_im_wait_for_mysqld($$$) {
...
@@ -543,7 +543,7 @@ sub mtr_im_wait_for_mysqld($$$) {
mtr_debug
("
Trying to connect to mysqld
"
.
mtr_debug
("
Trying to connect to mysqld
"
.
"
(
$cur_attempt
of
$total_attempts
)...
");
"
(
$cur_attempt
of
$total_attempts
)...
");
if
(
mtr_ping_
mysqld_server
(
$mysqld
->
{'
port
'})
)
if
(
mtr_ping_
port
(
$mysqld
->
{'
port
'})
)
{
{
mtr_debug
("
Mysqld is accepting connections
"
.
mtr_debug
("
Mysqld is accepting connections
"
.
"
on port
$mysqld
->{port}.
");
"
on port
$mysqld
->{port}.
");
...
...
mysql-test/lib/mtr_process.pl
View file @
ba96c5ae
...
@@ -26,28 +26,6 @@ sub mtr_kill_processes ($);
...
@@ -26,28 +26,6 @@ sub mtr_kill_processes ($);
sub
mtr_ping_with_timeout
($);
sub
mtr_ping_with_timeout
($);
sub
mtr_ping_port
($);
sub
mtr_ping_port
($);
# Private IM-related operations.
sub
mtr_im_kill_process
($$$);
sub
mtr_im_load_pids
($);
sub
mtr_im_terminate
($);
sub
mtr_im_check_alive
($);
sub
mtr_im_check_main_alive
($);
sub
mtr_im_check_angel_alive
($);
sub
mtr_im_check_mysqlds_alive
($);
sub
mtr_im_check_mysqld_alive
($$);
sub
mtr_im_cleanup
($);
sub
mtr_im_rm_file
($);
sub
mtr_im_errlog
($);
sub
mtr_im_kill
($);
sub
mtr_im_wait_for_connection
($$$);
sub
mtr_im_wait_for_mysqld
($$$);
# Public IM-related operations.
sub
mtr_im_start
($$);
sub
mtr_im_stop
($$);
# static in C
# static in C
sub
spawn_impl
($$$$$$$$);
sub
spawn_impl
($$$$$$$$);
...
@@ -1110,7 +1088,7 @@ sub mtr_kill_processes ($) {
...
@@ -1110,7 +1088,7 @@ sub mtr_kill_processes ($) {
{
{
foreach
my
$sig
(
15
,
9
)
foreach
my
$sig
(
15
,
9
)
{
{
last
if
mtr_im_kill_process
([
$pid
],
$sig
,
10
);
last
if
mtr_im_kill_process
([
$pid
],
$sig
,
10
,
1
);
}
}
}
}
}
}
...
...
mysql-test/r/im_daemon_life_cycle.result
View file @
ba96c5ae
...
@@ -18,7 +18,7 @@ Killing the process...
...
@@ -18,7 +18,7 @@ Killing the process...
Sleeping...
Sleeping...
Success: the process was restarted.
Success: the process was restarted.
SHOW INSTANCE STATUS mysqld1;
SHOW INSTANCE STATUS mysqld1;
instance_name stat
us version
instance_name stat
e version_number version mysqld_compatible
mysqld1 online VERSION
mysqld1 online VERSION
_NUMBER VERSION no
STOP INSTANCE mysqld2;
STOP INSTANCE mysqld2;
Success: the process has been stopped.
Success: the process has been stopped.
mysql-test/t/im_daemon_life_cycle.imtest
View file @
ba96c5ae
...
@@ -48,7 +48,7 @@ START INSTANCE mysqld2;
...
@@ -48,7 +48,7 @@ START INSTANCE mysqld2;
--sleep 3
--sleep 3
--replace_column 3 VERSION
--replace_column 3 VERSION
_NUMBER 4 VERSION
SHOW INSTANCE STATUS mysqld1;
SHOW INSTANCE STATUS mysqld1;
# 4. Stop mysqld2, because it will not be stopped by IM, as it is nonguarded.
# 4. Stop mysqld2, because it will not be stopped by IM, as it is nonguarded.
...
...
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