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
cbf2558b
Commit
cbf2558b
authored
Nov 24, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/space/my/mysql-4.0
into mysql.com:/space/my/mysql-4.0-build
parents
9c5fb81f
5281f34e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
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
mysys/my_getopt.c
mysys/my_getopt.c
+0
-2
No files found.
mysql-test/r/rpl_change_master.result
View file @
cbf2558b
...
...
@@ -8,7 +8,7 @@ select get_lock("a",5);
get_lock("a",5)
1
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);
stop slave;
select * from t1;
...
...
@@ -16,11 +16,11 @@ n
1
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
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';
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
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");
release_lock("a")
1
...
...
mysql-test/t/rpl_change_master.test
View file @
cbf2558b
...
...
@@ -4,15 +4,17 @@ connection slave;
select
get_lock
(
"a"
,
5
);
connection
master
;
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
);
save_master_pos
;
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
;
select
*
from
t1
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
show
slave
status
;
change
master
to
master_user
=
'root'
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
show
slave
status
;
# Will restart from after the values(2), which is bug
select
release_lock
(
"a"
);
...
...
mysys/my_getopt.c
View file @
cbf2558b
...
...
@@ -316,8 +316,6 @@ int handle_options(int *argc, char ***argv,
else
/* If argument differs from 0, enable option, else disable */
*
((
my_bool
*
)
optp
->
value
)
=
(
my_bool
)
atoi
(
optend
)
!=
0
;
}
(
*
argc
)
--
;
continue
;
}
else
if
(
optp
->
arg_type
==
REQUIRED_ARG
&&
!
optend
)
{
...
...
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