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
6dd41145
Commit
6dd41145
authored
Oct 08, 2015
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error messages if slave is not properly configured
parent
a69a6dda
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
mysql-test/suite/rpl/r/rpl_row_reset_slave.result
mysql-test/suite/rpl/r/rpl_row_reset_slave.result
+1
-1
mysql-test/suite/rpl/r/rpl_stm_reset_slave.result
mysql-test/suite/rpl/r/rpl_stm_reset_slave.result
+1
-1
sql/sql_repl.cc
sql/sql_repl.cc
+13
-3
No files found.
mysql-test/suite/rpl/r/rpl_row_reset_slave.result
View file @
6dd41145
...
@@ -47,7 +47,7 @@ include/start_slave.inc
...
@@ -47,7 +47,7 @@ include/start_slave.inc
include/stop_slave.inc
include/stop_slave.inc
reset slave all;
reset slave all;
start slave;
start slave;
ERROR HY000:
The server is not configured as slave; f
ix in config file or with CHANGE MASTER TO
ERROR HY000:
Misconfigured slave: MASTER_HOST was not set; F
ix in config file or with CHANGE MASTER TO
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;
include/start_slave.inc
include/start_slave.inc
include/rpl_end.inc
include/rpl_end.inc
mysql-test/suite/rpl/r/rpl_stm_reset_slave.result
View file @
6dd41145
...
@@ -47,7 +47,7 @@ include/start_slave.inc
...
@@ -47,7 +47,7 @@ include/start_slave.inc
include/stop_slave.inc
include/stop_slave.inc
reset slave all;
reset slave all;
start slave;
start slave;
ERROR HY000:
The server is not configured as slave; f
ix in config file or with CHANGE MASTER TO
ERROR HY000:
Misconfigured slave: MASTER_HOST was not set; F
ix in config file or with CHANGE MASTER TO
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;
CHANGE MASTER TO MASTER_HOST= 'MASTER_HOST', MASTER_USER= 'MASTER_USER', MASTER_PORT= MASTER_PORT;
include/start_slave.inc
include/start_slave.inc
include/rpl_end.inc
include/rpl_end.inc
sql/sql_repl.cc
View file @
6dd41145
...
@@ -2869,7 +2869,19 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
...
@@ -2869,7 +2869,19 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
if
(
init_master_info
(
mi
,
master_info_file_tmp
,
relay_log_info_file_tmp
,
0
,
if
(
init_master_info
(
mi
,
master_info_file_tmp
,
relay_log_info_file_tmp
,
0
,
thread_mask
))
thread_mask
))
slave_errno
=
ER_MASTER_INFO
;
slave_errno
=
ER_MASTER_INFO
;
else
if
(
server_id_supplied
&&
*
mi
->
host
)
else
if
(
!
server_id_supplied
)
{
slave_errno
=
ER_BAD_SLAVE
;
net_report
=
0
;
my_message
(
slave_errno
,
"Misconfigured slave: server_id was not set; Fix in config file"
,
MYF
(
0
));
}
else
if
(
!*
mi
->
host
)
{
slave_errno
=
ER_BAD_SLAVE
;
net_report
=
0
;
my_message
(
slave_errno
,
"Misconfigured slave: MASTER_HOST was not set; Fix in config file or with CHANGE MASTER TO"
,
MYF
(
0
));
}
else
{
{
/*
/*
If we will start SQL thread we will care about UNTIL options If
If we will start SQL thread we will care about UNTIL options If
...
@@ -2963,8 +2975,6 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
...
@@ -2963,8 +2975,6 @@ int start_slave(THD* thd , Master_info* mi, bool net_report)
relay_log_info_file_tmp
,
relay_log_info_file_tmp
,
thread_mask
);
thread_mask
);
}
}
else
slave_errno
=
ER_BAD_SLAVE
;
}
}
else
else
{
{
...
...
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