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
fc52e079
Commit
fc52e079
authored
May 31, 2002
by
nick@nick.leippe.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 'load table from master' hang when host is empty
added respective test case
parent
429aa745
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
mysql-test/r/rpl_empty_master_crash.result
mysql-test/r/rpl_empty_master_crash.result
+2
-0
mysql-test/t/rpl_empty_master_crash.test
mysql-test/t/rpl_empty_master_crash.test
+8
-0
sql/slave.cc
sql/slave.cc
+6
-0
No files found.
mysql-test/r/rpl_empty_master_crash.result
0 → 100644
View file @
fc52e079
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter
0 0 0 No 0 0
mysql-test/t/rpl_empty_master_crash.test
0 → 100644
View file @
fc52e079
source
include
/
master
-
slave
.
inc
;
connection
master
;
use
test
;
drop
table
if
exists
t1
;
show
slave
status
;
#--error 1218 # for mysql-4.0
--
error
1042
load
table
t1
from
master
;
sql/slave.cc
View file @
fc52e079
...
...
@@ -451,6 +451,12 @@ int fetch_nx_table(THD* thd, MASTER_INFO* mi)
goto
err
;
}
if
(
!
mi
->
host
||
!*
mi
->
host
)
{
nx_errno
=
ER_BAD_HOST_ERROR
;
goto
err
;
}
safe_connect
(
thd
,
mysql
,
mi
);
if
(
slave_killed
(
thd
))
goto
err
;
...
...
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