Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
1b94ba54
Commit
1b94ba54
authored
14 years ago
by
Luis Soares
Browse files
Options
Download
Email Patches
Plain Diff
BUG#46166
Post merge fixes for mysql-5.5-bugteam.
parent
5d6e142b
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
mysql-test/suite/binlog/r/binlog_max_extension.result
mysql-test/suite/binlog/r/binlog_max_extension.result
+1
-2
mysql-test/suite/binlog/t/binlog_max_extension.test
mysql-test/suite/binlog/t/binlog_max_extension.test
+2
-1
sql/log.cc
sql/log.cc
+1
-1
sql/slave.cc
sql/slave.cc
+2
-1
sql/sql_repl.cc
sql/sql_repl.cc
+1
-1
No files found.
mysql-test/suite/binlog/r/binlog_max_extension.result
View file @
1b94ba54
...
...
@@ -3,6 +3,5 @@ call mtr.add_suppression("Log filename extension number exhausted:");
call mtr.add_suppression("Can't generate a unique log-filename");
RESET MASTER;
FLUSH LOGS;
Warnings:
Warning 1098 Can't generate a unique log-filename master-bin.(1-999)
ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
This diff is collapsed.
Click to expand it.
mysql-test/suite/binlog/t/binlog_max_extension.test
View file @
1b94ba54
...
...
@@ -58,7 +58,8 @@ EOF
# Assertion
###########
# assertion: should throw warning
# assertion: should raise error
--
error
ER_NO_UNIQUE_LOGFILE
FLUSH
LOGS
;
##############
...
...
This diff is collapsed.
Click to expand it.
sql/log.cc
View file @
1b94ba54
...
...
@@ -5111,7 +5111,7 @@ int MYSQL_BIN_LOG::rotate_and_purge(uint flags)
to the current log.
*/
if
(
!
write_incident
(
current_thd
,
FALSE
))
flush_and_sync
();
flush_and_sync
(
0
);
#ifdef HAVE_REPLICATION
check_purge
=
true
;
...
...
This diff is collapsed.
Click to expand it.
sql/slave.cc
View file @
1b94ba54
...
...
@@ -523,7 +523,8 @@ int terminate_slave_threads(Master_info* mi,int thread_mask,bool skip_lock)
if
(
flush_master_info
(
mi
,
TRUE
,
FALSE
))
DBUG_RETURN
(
ER_ERROR_DURING_FLUSH_LOGS
);
if
(
my_sync
(
mi
->
rli
.
relay_log
.
get_log_file
()
->
file
,
MYF
(
MY_WME
)))
if
(
mi
->
rli
.
relay_log
.
is_open
()
&&
my_sync
(
mi
->
rli
.
relay_log
.
get_log_file
()
->
file
,
MYF
(
MY_WME
)))
DBUG_RETURN
(
ER_ERROR_DURING_FLUSH_LOGS
);
if
(
my_sync
(
mi
->
fd
,
MYF
(
MY_WME
)))
...
...
This diff is collapsed.
Click to expand it.
sql/sql_repl.cc
View file @
1b94ba54
...
...
@@ -1925,7 +1925,7 @@ bool show_binlogs(THD* thd)
if
(
!
mysql_bin_log
.
is_open
())
{
my_
message
(
ER_NO_BINARY_LOGGING
,
ER
(
ER_NO_BINARY_LOGGING
)
,
MYF
(
0
));
my_
error
(
ER_NO_BINARY_LOGGING
,
MYF
(
0
));
DBUG_RETURN
(
TRUE
);
}
...
...
This diff is collapsed.
Click to expand it.
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