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
996f4a3c
Commit
996f4a3c
authored
Jan 20, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
option to run mysql-test-run without binlog
calculate ndbcluster slave port
parent
cfc336a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+8
-2
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
996f4a3c
...
...
@@ -517,6 +517,7 @@ sub command_line_setup () {
$opt_master_myport
=
$ENV
{'
MTR_BUILD_THREAD
'}
*
40
+
8120
;
$opt_slave_myport
=
$opt_master_myport
+
16
;
$opt_ndbcluster_port
=
$opt_master_myport
+
24
;
$opt_ndbcluster_port_slave
=
$opt_master_myport
+
32
;
$im_port
=
$opt_master_myport
+
10
;
$im_mysqld1_port
=
$opt_master_myport
+
12
;
$im_mysqld2_port
=
$opt_master_myport
+
14
;
...
...
mysql-test/mysql-test-run.sh
View file @
996f4a3c
...
...
@@ -298,6 +298,7 @@ TEST_MODE=""
NDB_MGM_EXTRA_OPTS
=
NDB_MGMD_EXTRA_OPTS
=
NDBD_EXTRA_OPTS
=
MASTER_MYSQLDBINLOG
=
1
SLAVE_MYSQLDBINLOG
=
1
DO_STRESS
=
""
...
...
@@ -548,6 +549,7 @@ while test $# -gt 0; do
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
--skip-ndbcluster"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--skip-ndbcluster"
;;
--skip-master-binlog
)
MASTER_MYSQLDBINLOG
=
0
;;
--skip-slave-binlog
)
SLAVE_MYSQLDBINLOG
=
0
;;
--skip-
*
)
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
$1
"
...
...
@@ -1356,9 +1358,13 @@ start_master()
then
CURR_MASTER_MYSQLD_TRACE
=
"
$EXTRA_MASTER_MYSQLD_TRACE$1
"
fi
if
[
x
$MASTER_MYSQLDBINLOG
=
x1
]
then
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
--log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
$1
"
fi
if
[
-z
"
$DO_BENCH
"
-a
-z
"
$DO_STRESS
"
]
then
master_args
=
"--no-defaults
--log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
$1
\
master_args
=
"--no-defaults
\
--server-id=
$id
\
--basedir=
$MY_BASEDIR
\
--port=
$this_master_myport
\
...
...
@@ -1384,7 +1390,7 @@ start_master()
$EXTRA_MASTER_MYSQLD_OPT
$EXTRA_MASTER_OPT
\
$NOT_FIRST_MASTER_EXTRA_OPTS
$CURR_MASTER_MYSQLD_TRACE
"
else
master_args
=
"--no-defaults
--log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
$1
\
master_args
=
"--no-defaults
\
--server-id=
$id
--rpl-recovery-rank=1
\
--basedir=
$MY_BASEDIR
--init-rpl-role=master
\
--port=
$this_master_myport
\
...
...
sql/mysqld.cc
View file @
996f4a3c
...
...
@@ -3172,7 +3172,7 @@ with --log-bin instead.");
if
(
opt_binlog_format_id
==
BF_UNSPECIFIED
)
{
#ifdef HAVE_NDB_BINLOG
if
(
have_ndbcluster
==
SHOW_OPTION_YES
)
if
(
opt_bin_log
&&
have_ndbcluster
==
SHOW_OPTION_YES
)
opt_binlog_format_id
=
BF_ROW
;
else
#endif
...
...
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