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
468c3ad5
Commit
468c3ad5
authored
Aug 04, 2005
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run.pl:
Back ported ndbcluster_support() from 5.0 Corrected the server id handling
parent
b2819677
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+33
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
468c3ad5
...
@@ -287,6 +287,7 @@ sub executable_setup ();
...
@@ -287,6 +287,7 @@ sub executable_setup ();
sub
environment_setup
();
sub
environment_setup
();
sub
kill_running_server
();
sub
kill_running_server
();
sub
kill_and_cleanup
();
sub
kill_and_cleanup
();
sub
ndbcluster_support
();
sub
ndbcluster_install
();
sub
ndbcluster_install
();
sub
ndbcluster_start
();
sub
ndbcluster_start
();
sub
ndbcluster_stop
();
sub
ndbcluster_stop
();
...
@@ -319,6 +320,12 @@ sub main () {
...
@@ -319,6 +320,12 @@ sub main () {
initial_setup
();
initial_setup
();
command_line_setup
();
command_line_setup
();
executable_setup
();
executable_setup
();
if
(
!
$opt_skip_ndbcluster
and
!
$opt_with_ndbcluster
)
{
$opt_with_ndbcluster
=
ndbcluster_support
();
}
environment_setup
();
environment_setup
();
signal_setup
();
signal_setup
();
...
@@ -1026,6 +1033,23 @@ sub kill_and_cleanup () {
...
@@ -1026,6 +1033,23 @@ sub kill_and_cleanup () {
#
#
##############################################################################
##############################################################################
sub
ndbcluster_support
()
{
# check ndbcluster support by testing using a switch
# that is only available in that case
if
(
mtr_run
(
$exe_mysqld
,
["
--no-defaults
",
"
--ndb-use-exact-count
",
"
--help
"],
"",
"
/dev/null
",
"
/dev/null
",
"")
!=
0
)
{
mtr_report
("
No ndbcluster support
");
return
0
;
}
mtr_report
("
Has ndbcluster support
");
return
1
;
}
# FIXME why is there a different start below?!
# FIXME why is there a different start below?!
sub
ndbcluster_install
()
{
sub
ndbcluster_install
()
{
...
@@ -1663,13 +1687,15 @@ sub mysqld_arguments ($$$$$) {
...
@@ -1663,13 +1687,15 @@ sub mysqld_arguments ($$$$$) {
if
(
$type
eq
'
master
'
)
if
(
$type
eq
'
master
'
)
{
{
my
$id
=
$idx
>
0
?
$idx
+
101
:
1
;
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/master-bin%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--log-bin=%s/log/master-bin%s
",
$prefix
,
$opt_vardir
,
$sidx
);
$opt_vardir
,
$sidx
);
mtr_add_arg
(
$args
,
"
%s--pid-file=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--pid-file=%s
",
$prefix
,
$master
->
[
$idx
]
->
{'
path_mypid
'});
$master
->
[
$idx
]
->
{'
path_mypid
'});
mtr_add_arg
(
$args
,
"
%s--port=%d
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--port=%d
",
$prefix
,
$master
->
[
$idx
]
->
{'
path_myport
'});
$master
->
[
$idx
]
->
{'
path_myport
'});
mtr_add_arg
(
$args
,
"
%s--server-id=
1
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--server-id=
%d
",
$prefix
,
$id
);
mtr_add_arg
(
$args
,
"
%s--socket=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--socket=%s
",
$prefix
,
$master
->
[
$idx
]
->
{'
path_mysock
'});
$master
->
[
$idx
]
->
{'
path_mysock
'});
mtr_add_arg
(
$args
,
"
%s--innodb_data_file_path=ibdata1:50M
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--innodb_data_file_path=ibdata1:50M
",
$prefix
);
...
@@ -1677,6 +1703,11 @@ sub mysqld_arguments ($$$$$) {
...
@@ -1677,6 +1703,11 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
$master
->
[
$idx
]
->
{'
path_myddir
'});
$master
->
[
$idx
]
->
{'
path_myddir
'});
if
(
$idx
>
0
)
{
mtr_add_arg
(
$args
,
"
%s--skip-innodb
",
$prefix
);
}
if
(
$opt_skip_ndbcluster
)
if
(
$opt_skip_ndbcluster
)
{
{
mtr_add_arg
(
$args
,
"
%s--skip-ndbcluster
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--skip-ndbcluster
",
$prefix
);
...
@@ -1686,7 +1717,7 @@ sub mysqld_arguments ($$$$$) {
...
@@ -1686,7 +1717,7 @@ sub mysqld_arguments ($$$$$) {
if
(
$type
eq
'
slave
'
)
if
(
$type
eq
'
slave
'
)
{
{
my
$slave_server_id
=
2
+
$idx
;
my
$slave_server_id
=
2
+
$idx
;
my
$slave_rpl_rank
=
$
idx
>
0
?
2
:
$
slave_server_id
;
my
$slave_rpl_rank
=
$slave_server_id
;
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--datadir=%s
",
$prefix
,
$slave
->
[
$idx
]
->
{'
path_myddir
'});
$slave
->
[
$idx
]
->
{'
path_myddir
'});
...
...
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