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
2c507460
Commit
2c507460
authored
Sep 28, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple servers for cluster
parent
03e0606b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/include/have_ndb.inc
mysql-test/include/have_ndb.inc
+3
-2
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+6
-6
No files found.
mysql-test/include/have_ndb.inc
View file @
2c507460
...
...
@@ -2,5 +2,6 @@
disable_query_log
;
show
variables
like
"have_ndbcluster"
;
enable_query_log
;
connect
(
server1
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
server2
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
"1"
,);
connect
(
server1
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,
$MASTER_MYSOCK
);
connect
(
server2
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT1
,
$MASTER_MYSOCK1
);
connection
server1
;
mysql-test/mysql-test-run.sh
View file @
2c507460
...
...
@@ -254,9 +254,9 @@ while test $# -gt 0; do
--extern
)
USE_RUNNING_SERVER
=
"1"
;;
--with-ndbcluster
)
USE_NDBCLUSTER
=
"--ndbcluster"
;;
--ndbconnectstring
=
*
)
--ndb
-
connectstring
=
*
)
USE_NDBCLUSTER
=
"--ndbcluster"
;
USE_RUNNING_NDBCLUSTER
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--ndbconnectstring=;;"
`
;;
USE_RUNNING_NDBCLUSTER
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--ndb
-
connectstring=;;"
`
;;
--tmpdir
=
*
)
MYSQL_TMP_DIR
=
`
$ECHO
"
$1
"
|
$SED
-e
"s;--tmpdir=;;"
`
;;
--local-master
)
MASTER_MYPORT
=
3306
;
...
...
@@ -1038,7 +1038,7 @@ EOF
-title
"Master"
-e
gdb
-x
$GDB_MASTER_INIT
$MASTER_MYSQLD
fi
else
manager_launch master
$1
$MASTER_MYSQLD
$master_args
manager_launch master
$MASTER_MYSQLD
$master_args
fi
sleep_until_file_created
$MASTER_MYPID$1
$wait_for_master
wait_for_master
=
$SLEEP_TIME_FOR_SECOND_MASTER
...
...
@@ -1225,7 +1225,7 @@ stop_master ()
# MASTER_RUNNING=0 to get cleanup when calling start_master().
if
[
x
$USE_EMBEDDED_SERVER
!=
x1
]
;
then
pid
=
`
$CAT
$MASTER_MYPID$1
`
manager_term
$pid
master
manager_term
$pid
master
$1
if
[
$?
!=
0
]
&&
[
-f
$MASTER_MYPID$1
]
then
# try harder!
$ECHO
"master not cooperating with mysqladmin, will try manual kill"
...
...
@@ -1386,7 +1386,7 @@ run_testcase ()
stop_master 1
echo
"CURRENT_TEST:
$tname
"
>>
$MASTER_MYERR
start_master
if
[
!
-z
"
$USE_NDBCLUSTER
"
]
;
then
if
[
-n
"
$USE_NDBCLUSTER
"
-a
-z
"
$DO_BENCH
"
]
;
then
start_master 1
fi
TZ
=
$MY_TZ
;
export
TZ
...
...
@@ -1402,7 +1402,7 @@ run_testcase ()
stop_master 1
echo
"CURRENT_TEST:
$tname
"
>>
$MASTER_MYERR
start_master
if
[
!
-z
"
$USE_NDBCLUSTER
"
]
;
then
if
[
-n
"
$USE_NDBCLUSTER
"
-a
-z
"
$DO_BENCH
"
]
;
then
start_master 1
fi
else
...
...
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