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
03ed3231
Commit
03ed3231
authored
Oct 12, 2005
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
slave.cc:
SCCS merged
parents
304d4f58
554970c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
sql/slave.cc
sql/slave.cc
+18
-1
No files found.
sql/slave.cc
View file @
03ed3231
...
@@ -1722,9 +1722,26 @@ static int init_relay_log_info(RELAY_LOG_INFO* rli,
...
@@ -1722,9 +1722,26 @@ static int init_relay_log_info(RELAY_LOG_INFO* rli,
{
{
char
buf
[
FN_REFLEN
];
char
buf
[
FN_REFLEN
];
const
char
*
ln
;
const
char
*
ln
;
static
bool
name_warning_sent
=
0
;
ln
=
rli
->
relay_log
.
generate_name
(
opt_relay_logname
,
"-relay-bin"
,
ln
=
rli
->
relay_log
.
generate_name
(
opt_relay_logname
,
"-relay-bin"
,
1
,
buf
);
1
,
buf
);
/* We send the warning only at startup, not after every RESET SLAVE */
if
(
!
opt_relay_logname
&&
!
opt_relaylog_index_name
&&
!
name_warning_sent
)
{
/*
User didn't give us info to name the relay log index file.
Picking `hostname`-relay-bin.index like we do, causes replication to
fail if this slave's hostname is changed later. So, we would like to
instead require a name. But as we don't want to break many existing
setups, we only give warning, not error.
*/
sql_print_warning
(
"Neither --relay-log nor --relay-log-index were used;"
" so replication "
"may break when this MySQL server acts as a "
"slave and has his hostname changed!! Please "
"use '--relay-log=%s' to avoid this problem."
,
ln
);
name_warning_sent
=
1
;
}
/*
/*
note, that if open() fails, we'll still have index file open
note, that if open() fails, we'll still have index file open
but a destructor will take care of that
but a destructor will take care of that
...
...
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