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
e62283b9
Commit
e62283b9
authored
May 30, 2002
by
nick@nick.leippe.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug: load table from master w/empty master would hang.
Now it properly returns error. Added respective test case.
parent
7bde7e21
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/r/rpl_empty_master_crash.result
mysql-test/r/rpl_empty_master_crash.result
+12
-0
mysql-test/t/rpl_empty_master_crash.test
mysql-test/t/rpl_empty_master_crash.test
+7
-0
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+3
-0
No files found.
mysql-test/r/rpl_empty_master_crash.result
0 → 100644
View file @
e62283b9
slave stop;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
slave start;
use test;
drop table if exists t1;
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
0 0 0 0 No No 0 0 0 0
load table t1 from master;
Error in fetch_master_table
mysql-test/t/rpl_empty_master_crash.test
0 → 100644
View file @
e62283b9
source
include
/
master
-
slave
.
inc
;
connection
master
;
use
test
;
drop
table
if
exists
t1
;
show
slave
status
;
--
error
1218
load
table
t1
from
master
;
sql/repl_failsafe.cc
View file @
e62283b9
...
@@ -608,6 +608,9 @@ int show_slave_hosts(THD* thd)
...
@@ -608,6 +608,9 @@ int show_slave_hosts(THD* thd)
int
connect_to_master
(
THD
*
thd
,
MYSQL
*
mysql
,
MASTER_INFO
*
mi
)
int
connect_to_master
(
THD
*
thd
,
MYSQL
*
mysql
,
MASTER_INFO
*
mi
)
{
{
if
(
!
mi
->
host
||
!*
mi
->
host
)
/* empty host */
return
1
;
if
(
!
mc_mysql_connect
(
mysql
,
mi
->
host
,
mi
->
user
,
mi
->
password
,
0
,
if
(
!
mc_mysql_connect
(
mysql
,
mi
->
host
,
mi
->
user
,
mi
->
password
,
0
,
mi
->
port
,
0
,
0
))
mi
->
port
,
0
,
0
))
{
{
...
...
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