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
c61d96d5
Commit
c61d96d5
authored
Nov 23, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test for binary builds
mysql-test/r/rpl_change_master.result: Updated results
parent
a71285a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
mysql-test/r/rpl_change_master.result
mysql-test/r/rpl_change_master.result
+3
-3
mysql-test/t/rpl_change_master.test
mysql-test/t/rpl_change_master.test
+4
-2
No files found.
mysql-test/r/rpl_change_master.result
View file @
c61d96d5
...
@@ -8,7 +8,7 @@ select get_lock("a",5);
...
@@ -8,7 +8,7 @@ select get_lock("a",5);
get_lock("a",5)
get_lock("a",5)
1
1
create table t1(n int);
create table t1(n int);
insert into t1 values(1+get_lock("a",1
0
)*0);
insert into t1 values(1+get_lock("a",1
5
)*0);
insert into t1 values(2);
insert into t1 values(2);
stop slave;
stop slave;
select * from t1;
select * from t1;
...
@@ -16,11 +16,11 @@ n
...
@@ -16,11 +16,11 @@ n
1
1
show slave status;
show slave status;
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
127.0.0.1 root
9306
1 master-bin.001 273 slave-relay-bin.002 255 master-bin.001 No No 0 0 214 314
127.0.0.1 root
MASTER_MYPORT
1 master-bin.001 273 slave-relay-bin.002 255 master-bin.001 No No 0 0 214 314
change master to master_user='root';
change master to master_user='root';
show slave status;
show slave status;
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
127.0.0.1 root
9306
1 master-bin.001 214 slave-relay-bin.001 4 master-bin.001 No No 0 0 214 4
127.0.0.1 root
MASTER_MYPORT
1 master-bin.001 214 slave-relay-bin.001 4 master-bin.001 No No 0 0 214 4
select release_lock("a");
select release_lock("a");
release_lock("a")
release_lock("a")
1
1
...
...
mysql-test/t/rpl_change_master.test
View file @
c61d96d5
...
@@ -4,15 +4,17 @@ connection slave;
...
@@ -4,15 +4,17 @@ connection slave;
select
get_lock
(
"a"
,
5
);
select
get_lock
(
"a"
,
5
);
connection
master
;
connection
master
;
create
table
t1
(
n
int
);
create
table
t1
(
n
int
);
insert
into
t1
values
(
1
+
get_lock
(
"a"
,
1
0
)
*
0
);
insert
into
t1
values
(
1
+
get_lock
(
"a"
,
1
5
)
*
0
);
insert
into
t1
values
(
2
);
insert
into
t1
values
(
2
);
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sleep
3
;
# can't sync_with_master as we should be blocked
--
real_
sleep
3
;
# can't sync_with_master as we should be blocked
stop
slave
;
stop
slave
;
select
*
from
t1
;
select
*
from
t1
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
show
slave
status
;
show
slave
status
;
change
master
to
master_user
=
'root'
;
change
master
to
master_user
=
'root'
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
show
slave
status
;
show
slave
status
;
# Will restart from after the values(2), which is bug
# Will restart from after the values(2), which is bug
select
release_lock
(
"a"
);
select
release_lock
(
"a"
);
...
...
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