Commit 16b2ca1f authored by Luis Soares's avatar Luis Soares

BUG#46166

Post merge fixes for mysql-5.5-bugteam.
parent 26ee8f53
...@@ -3,6 +3,5 @@ call mtr.add_suppression("Log filename extension number exhausted:"); ...@@ -3,6 +3,5 @@ call mtr.add_suppression("Log filename extension number exhausted:");
call mtr.add_suppression("Can't generate a unique log-filename"); call mtr.add_suppression("Can't generate a unique log-filename");
RESET MASTER; RESET MASTER;
FLUSH LOGS; FLUSH LOGS;
Warnings: ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
Warning 1098 Can't generate a unique log-filename master-bin.(1-999)
...@@ -58,7 +58,8 @@ EOF ...@@ -58,7 +58,8 @@ EOF
# Assertion # Assertion
########### ###########
# assertion: should throw warning # assertion: should raise error
-- error ER_NO_UNIQUE_LOGFILE
FLUSH LOGS; FLUSH LOGS;
############## ##############
......
...@@ -5111,7 +5111,7 @@ int MYSQL_BIN_LOG::rotate_and_purge(uint flags) ...@@ -5111,7 +5111,7 @@ int MYSQL_BIN_LOG::rotate_and_purge(uint flags)
to the current log. to the current log.
*/ */
if (!write_incident(current_thd, FALSE)) if (!write_incident(current_thd, FALSE))
flush_and_sync(); flush_and_sync(0);
#ifdef HAVE_REPLICATION #ifdef HAVE_REPLICATION
check_purge= true; check_purge= true;
......
...@@ -523,7 +523,8 @@ int terminate_slave_threads(Master_info* mi,int thread_mask,bool skip_lock) ...@@ -523,7 +523,8 @@ int terminate_slave_threads(Master_info* mi,int thread_mask,bool skip_lock)
if (flush_master_info(mi, TRUE, FALSE)) if (flush_master_info(mi, TRUE, FALSE))
DBUG_RETURN(ER_ERROR_DURING_FLUSH_LOGS); 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); DBUG_RETURN(ER_ERROR_DURING_FLUSH_LOGS);
if (my_sync(mi->fd, MYF(MY_WME))) if (my_sync(mi->fd, MYF(MY_WME)))
......
...@@ -1925,7 +1925,7 @@ bool show_binlogs(THD* thd) ...@@ -1925,7 +1925,7 @@ bool show_binlogs(THD* thd)
if (!mysql_bin_log.is_open()) 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); DBUG_RETURN(TRUE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment