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
54a5e17d
Commit
54a5e17d
authored
Jun 16, 2003
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@213.136.52.20:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
29796e62
3f33f171
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
18 deletions
+31
-18
client/mysqltest.c
client/mysqltest.c
+2
-1
mysql-test/r/rpl_loaddata.result
mysql-test/r/rpl_loaddata.result
+0
-3
mysql-test/r/rpl_master_pos_wait.result
mysql-test/r/rpl_master_pos_wait.result
+6
-2
mysql-test/t/rpl000001.test
mysql-test/t/rpl000001.test
+2
-2
mysql-test/t/rpl_loaddata.test
mysql-test/t/rpl_loaddata.test
+2
-6
mysql-test/t/rpl_master_pos_wait.test
mysql-test/t/rpl_master_pos_wait.test
+8
-2
sql/slave.cc
sql/slave.cc
+11
-2
No files found.
client/mysqltest.c
View file @
54a5e17d
...
@@ -996,7 +996,8 @@ int do_sync_with_master2(const char* p)
...
@@ -996,7 +996,8 @@ int do_sync_with_master2(const char* p)
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
if
(
!
(
row
=
mysql_fetch_row
(
res
)))
die
(
"line %u: empty result in %s"
,
start_lineno
,
query_buf
);
die
(
"line %u: empty result in %s"
,
start_lineno
,
query_buf
);
if
(
!
row
[
0
])
if
(
!
row
[
0
])
die
(
"Error on slave while syncing with master"
);
die
(
"line %u: could not sync with master ('%s' returned NULL)"
,
start_lineno
,
query_buf
);
mysql_free_result
(
res
);
mysql_free_result
(
res
);
last_result
=
0
;
last_result
=
0
;
if
(
rpl_parse
)
if
(
rpl_parse
)
...
...
mysql-test/r/rpl_loaddata.result
View file @
54a5e17d
...
@@ -25,6 +25,3 @@ drop table t3;
...
@@ -25,6 +25,3 @@ drop table t3;
create table t1(a int, b int, unique(b));
create table t1(a int, b int, unique(b));
insert into t1 values(1,10);
insert into t1 values(1,10);
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
show status like 'slave_running';
Variable_name Value
Slave_running OFF
mysql-test/r/rpl_master_pos_wait.result
View file @
54a5e17d
...
@@ -4,6 +4,10 @@ reset master;
...
@@ -4,6 +4,10 @@ reset master;
reset slave;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
slave start;
slave start;
select master_pos_wait('master-bin.999999',0,
10
);
select master_pos_wait('master-bin.999999',0,
2
);
master_pos_wait('master-bin.999999',0,
10
)
master_pos_wait('master-bin.999999',0,
2
)
-1
-1
select master_pos_wait('master-bin.999999',0);
stop slave sql_thread;
master_pos_wait('master-bin.999999',0)
NULL
mysql-test/t/rpl000001.test
View file @
54a5e17d
...
@@ -90,8 +90,8 @@ connection master;
...
@@ -90,8 +90,8 @@ connection master;
--
error
1053
;
--
error
1053
;
reap
;
reap
;
connection
slave
;
connection
slave
;
sync_with_master
;
# The SQL slave thread should now have stopped because the query was killed on
#
give the slave a chance to exit
#
the master (so it has a non-zero error code in the binlog).
wait_for_slave_to_stop
;
wait_for_slave_to_stop
;
# The following test can't be done because the result of Pos will differ
# The following test can't be done because the result of Pos will differ
...
...
mysql-test/t/rpl_loaddata.test
View file @
54a5e17d
...
@@ -42,9 +42,5 @@ load data infile '../../std_data/rpl_loaddata.dat' into table t1;
...
@@ -42,9 +42,5 @@ load data infile '../../std_data/rpl_loaddata.dat' into table t1;
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
# don't sync_with_master because the slave SQL thread should be stopped because
# The SQL slave thread should be stopped now.
# of the error so MASTER_POS_WAIT() will not return; just sleep and hope the
wait_for_slave_to_stop
;
# slave SQL thread will have had time to stop.
sleep
1
;
show
status
like
'slave_running'
;
mysql-test/t/rpl_master_pos_wait.test
View file @
54a5e17d
...
@@ -5,5 +5,11 @@ save_master_pos;
...
@@ -5,5 +5,11 @@ save_master_pos;
connection
slave
;
connection
slave
;
sync_with_master
;
sync_with_master
;
# Ask for a master log that has certainly not been reached yet
# Ask for a master log that has certainly not been reached yet
# timeout= 10 seconds
# timeout= 2 seconds
select
master_pos_wait
(
'master-bin.999999'
,
0
,
10
);
select
master_pos_wait
(
'master-bin.999999'
,
0
,
2
);
# Testcase for bug 651 (master_pos_wait() hangs if slave idle and STOP SLAVE).
send
select
master_pos_wait
(
'master-bin.999999'
,
0
);
connection
slave1
;
stop
slave
sql_thread
;
connection
slave
;
reap
;
sql/slave.cc
View file @
54a5e17d
...
@@ -2445,8 +2445,17 @@ reconnect done to recover from failed read");
...
@@ -2445,8 +2445,17 @@ reconnect done to recover from failed read");
for no reason, but this function will do a clean read, notice the clean
for no reason, but this function will do a clean read, notice the clean
value and exit immediately.
value and exit immediately.
*/
*/
DBUG_PRINT
(
"info"
,
(
"ignore_log_space_limit=%d"
,
(
int
)
#ifndef DBUG_OFF
mi
->
rli
.
ignore_log_space_limit
));
{
char
llbuf1
[
22
],
llbuf2
[
22
];
DBUG_PRINT
(
"info"
,
(
"log_space_limit=%s log_space_total=%s \
ignore_log_space_limit=%d"
,
llstr
(
mi
->
rli
.
log_space_limit
,
llbuf1
),
llstr
(
mi
->
rli
.
log_space_total
,
llbuf2
),
(
int
)
mi
->
rli
.
ignore_log_space_limit
));
}
#endif
if
(
mi
->
rli
.
log_space_limit
&&
mi
->
rli
.
log_space_limit
<
if
(
mi
->
rli
.
log_space_limit
&&
mi
->
rli
.
log_space_limit
<
mi
->
rli
.
log_space_total
&&
mi
->
rli
.
log_space_total
&&
!
mi
->
rli
.
ignore_log_space_limit
)
!
mi
->
rli
.
ignore_log_space_limit
)
...
...
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