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
7cd628cf
Commit
7cd628cf
authored
Jan 27, 2010
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge from mysql-trunk-merge.
parents
13d68d42
83f7a74b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
+7
-6
mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
+4
-10
No files found.
mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
View file @
7cd628cf
...
@@ -266,15 +266,16 @@ Reload master
...
@@ -266,15 +266,16 @@ Reload master
Heartbeat event received
Heartbeat event received
*** Circular replication ***
*** Circular replication ***
RESET MASTER;
stop slave;
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10));
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
include/stop_slave.inc
include/stop_slave.inc
RESET MASTER;
RESET SLAVE;
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1, MASTER_LOG_FILE='MASTER_BINLOG';
RESET SLAVE;
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=SLAVE_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=1, MASTER_LOG_FILE='SLAVE_BINLOG';
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=SLAVE_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=1, MASTER_LOG_FILE='SLAVE_BINLOG';
include/start_slave.inc
include/start_slave.inc
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10));
INSERT INTO t1 VALUES(1, 'on master');
INSERT INTO t1 VALUES(1, 'on master');
include/start_slave.inc
include/start_slave.inc
INSERT INTO t1 VALUES(2, 'on slave');
INSERT INTO t1 VALUES(2, 'on slave');
...
...
mysql-test/suite/rpl/t/rpl_heartbeat_basic.test
View file @
7cd628cf
...
@@ -473,23 +473,17 @@ let $status_var_comparsion= >;
...
@@ -473,23 +473,17 @@ let $status_var_comparsion= >;
# Circular replication
# Circular replication
--
echo
***
Circular
replication
***
--
echo
***
Circular
replication
***
# Configure circular replication
# Configure circular replication
--
connection
master
--
source
include
/
master
-
slave
-
reset
.
inc
RESET
MASTER
;
--
connection
slave
let
$master_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
);
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
VARCHAR
(
10
));
--
sync_slave_with_master
--
source
include
/
stop_slave
.
inc
--
source
include
/
stop_slave
.
inc
RESET
MASTER
;
let
$slave_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
);
let
$slave_binlog
=
query_get_value
(
SHOW
MASTER
STATUS
,
File
,
1
);
RESET
SLAVE
;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
$master_binlog
MASTER_BINLOG
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_PORT
=
$MASTER_MYPORT
,
MASTER_USER
=
'root'
,
MASTER_HEARTBEAT_PERIOD
=
0.1
,
MASTER_LOG_FILE
=
'$master_binlog'
;
--
connection
master
--
connection
master
RESET
SLAVE
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
$slave_binlog
SLAVE_BINLOG
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
$slave_binlog
SLAVE_BINLOG
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_PORT
=
$SLAVE_MYPORT
,
MASTER_USER
=
'root'
,
MASTER_HEARTBEAT_PERIOD
=
1
,
MASTER_LOG_FILE
=
'$slave_binlog'
;
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_PORT
=
$SLAVE_MYPORT
,
MASTER_USER
=
'root'
,
MASTER_HEARTBEAT_PERIOD
=
1
,
MASTER_LOG_FILE
=
'$slave_binlog'
;
--
source
include
/
start_slave
.
inc
--
source
include
/
start_slave
.
inc
# Insert data on master and on slave and make sure that it replicated for both directions
# Insert data on master and on slave and make sure that it replicated for both directions
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
VARCHAR
(
10
));
INSERT
INTO
t1
VALUES
(
1
,
'on master'
);
INSERT
INTO
t1
VALUES
(
1
,
'on master'
);
--
save_master_pos
--
save_master_pos
--
connection
slave
--
connection
slave
...
...
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