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
76f6331a
Commit
76f6331a
authored
Feb 10, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed to use temporary heap table on a ndb test
corrected multiple --log-bin options in mysql-test-run
parent
fe0ff3e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+5
-2
mysql-test/r/rpl_ndb_sync.result
mysql-test/r/rpl_ndb_sync.result
+1
-2
mysql-test/t/rpl_ndb_sync.test
mysql-test/t/rpl_ndb_sync.test
+1
-2
No files found.
mysql-test/mysql-test-run.sh
View file @
76f6331a
...
@@ -1382,7 +1382,7 @@ start_master()
...
@@ -1382,7 +1382,7 @@ start_master()
fi
fi
if
[
x
$MASTER_MYSQLDBINLOG
=
x1
]
if
[
x
$MASTER_MYSQLDBINLOG
=
x1
]
then
then
EXTRA_MASTER_MYSQLD_OPT
=
"
$EXTRA_MASTER_MYSQLD_OPT
--log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
$1
"
MASTER_MYSQLD_BINLOG_OPT
=
"
--log-bin=
$MYSQL_TEST_DIR
/var/log/master-bin
$1
"
fi
fi
if
[
-z
"
$DO_BENCH
"
-a
-z
"
$DO_STRESS
"
]
if
[
-z
"
$DO_BENCH
"
-a
-z
"
$DO_STRESS
"
]
then
then
...
@@ -1409,6 +1409,7 @@ start_master()
...
@@ -1409,6 +1409,7 @@ start_master()
--loose-binlog-show-xid=0
\
--loose-binlog-show-xid=0
\
$MASTER_40_ARGS
\
$MASTER_40_ARGS
\
$SMALL_SERVER
\
$SMALL_SERVER
\
$MASTER_MYSQLD_BINLOG_OPT
\
$EXTRA_MASTER_MYSQLD_OPT
$EXTRA_MASTER_OPT
\
$EXTRA_MASTER_MYSQLD_OPT
$EXTRA_MASTER_OPT
\
$NOT_FIRST_MASTER_EXTRA_OPTS
$CURR_MASTER_MYSQLD_TRACE
"
$NOT_FIRST_MASTER_EXTRA_OPTS
$CURR_MASTER_MYSQLD_TRACE
"
else
else
...
@@ -1432,6 +1433,7 @@ start_master()
...
@@ -1432,6 +1433,7 @@ start_master()
--loose-binlog-show-xid=0
\
--loose-binlog-show-xid=0
\
$MASTER_40_ARGS
\
$MASTER_40_ARGS
\
$SMALL_SERVER
\
$SMALL_SERVER
\
$MASTER_MYSQLD_BINLOG_OPT
\
$EXTRA_MASTER_MYSQLD_OPT
$EXTRA_MASTER_OPT
\
$EXTRA_MASTER_MYSQLD_OPT
$EXTRA_MASTER_OPT
\
$NOT_FIRST_MASTER_EXTRA_OPTS
"
$NOT_FIRST_MASTER_EXTRA_OPTS
"
fi
fi
...
@@ -1574,7 +1576,7 @@ start_slave()
...
@@ -1574,7 +1576,7 @@ start_slave()
if
[
x
$SLAVE_MYSQLDBINLOG
=
x1
]
if
[
x
$SLAVE_MYSQLDBINLOG
=
x1
]
then
then
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--log-bin=
$MYSQL_TEST_DIR
/var/log/
$slave_ident
-bin --log-slave-updates"
SLAVE_MYSQLD_BINLOG_OPT
=
"
--log-bin=
$MYSQL_TEST_DIR
/var/log/
$slave_ident
-bin --log-slave-updates"
fi
fi
$RM
-f
$slave_datadir
/log.
*
$RM
-f
$slave_datadir
/log.
*
...
@@ -1603,6 +1605,7 @@ start_slave()
...
@@ -1603,6 +1605,7 @@ start_slave()
--log-bin-trust-function-creators
\
--log-bin-trust-function-creators
\
--loose-binlog-show-xid=0
\
--loose-binlog-show-xid=0
\
$SMALL_SERVER
\
$SMALL_SERVER
\
$SLAVE_MYSQLD_BINLOG_OPT
\
$EXTRA_SLAVE_MYSQLD_OPT
$EXTRA_SLAVE_OPT
\
$EXTRA_SLAVE_MYSQLD_OPT
$EXTRA_SLAVE_OPT
\
$USE_NDBCLUSTER_SLAVE_OPT
"
$USE_NDBCLUSTER_SLAVE_OPT
"
CUR_MYERR
=
$slave_err
CUR_MYERR
=
$slave_err
...
...
mysql-test/r/rpl_ndb_sync.result
View file @
76f6331a
...
@@ -25,8 +25,7 @@ hex(c2) hex(c3) c1
...
@@ -25,8 +25,7 @@ hex(c2) hex(c3) c1
0 1 BCDEF
0 1 BCDEF
1 0 CD
1 0 CD
0 0 DEFGHIJKL
0 0 DEFGHIJKL
CREATE TABLE IF NOT EXISTS cluster_replication.backup_info (id INT, backup_id INT);
CREATE TEMPORARY TABLE cluster_replication.backup_info (id INT, backup_id INT) ENGINE=HEAP;
DELETE FROM cluster_replication.backup_info;
LOAD DATA INFILE '../../var/tmp.dat' INTO TABLE cluster_replication.backup_info FIELDS TERMINATED BY ',';
LOAD DATA INFILE '../../var/tmp.dat' INTO TABLE cluster_replication.backup_info FIELDS TERMINATED BY ',';
SELECT @the_backup_id:=backup_id FROM cluster_replication.backup_info;
SELECT @the_backup_id:=backup_id FROM cluster_replication.backup_info;
@the_backup_id:=backup_id
@the_backup_id:=backup_id
...
...
mysql-test/t/rpl_ndb_sync.test
View file @
76f6331a
...
@@ -27,8 +27,7 @@ SELECT hex(c2),hex(c3),c1 FROM t2 ORDER BY c1;
...
@@ -27,8 +27,7 @@ SELECT hex(c2),hex(c3),c1 FROM t2 ORDER BY c1;
# take a backup on master
# take a backup on master
--
exec
$NDB_MGM
--
no
-
defaults
--
ndb
-
connectstring
=
"localhost:
$NDBCLUSTER_PORT
"
-
e
"start backup"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_MGM
--
no
-
defaults
--
ndb
-
connectstring
=
"localhost:
$NDBCLUSTER_PORT
"
-
e
"start backup"
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_select_all
--
no
-
defaults
--
ndb
-
connectstring
=
"localhost:
$NDBCLUSTER_PORT
"
-
d
sys
--
delimiter
=
','
SYSTAB_0
|
grep
520093696
>
var
/
tmp
.
dat
--
exec
$NDB_TOOLS_DIR
/
ndb_select_all
--
no
-
defaults
--
ndb
-
connectstring
=
"localhost:
$NDBCLUSTER_PORT
"
-
d
sys
--
delimiter
=
','
SYSTAB_0
|
grep
520093696
>
var
/
tmp
.
dat
CREATE
TABLE
IF
NOT
EXISTS
cluster_replication
.
backup_info
(
id
INT
,
backup_id
INT
);
CREATE
TEMPORARY
TABLE
cluster_replication
.
backup_info
(
id
INT
,
backup_id
INT
)
ENGINE
=
HEAP
;
DELETE
FROM
cluster_replication
.
backup_info
;
LOAD
DATA
INFILE
'../../var/tmp.dat'
INTO
TABLE
cluster_replication
.
backup_info
FIELDS
TERMINATED
BY
','
;
LOAD
DATA
INFILE
'../../var/tmp.dat'
INTO
TABLE
cluster_replication
.
backup_info
FIELDS
TERMINATED
BY
','
;
--
replace_column
1
<
the_backup_id
>
--
replace_column
1
<
the_backup_id
>
SELECT
@
the_backup_id
:=
backup_id
FROM
cluster_replication
.
backup_info
;
SELECT
@
the_backup_id
:=
backup_id
FROM
cluster_replication
.
backup_info
;
...
...
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