Browse Source

BUG#46166

Post merge fix. In write_incident, check if binlog file is
opened before actually trying to write the incident event.
pull/374/head
Luis Soares 15 years ago
parent
commit
ffc16a2d06
  1. 4
      sql/log.cc

4
sql/log.cc

@ -4828,6 +4828,10 @@ bool MYSQL_BIN_LOG::write_incident(THD *thd, bool lock)
{
uint error= 0;
DBUG_ENTER("MYSQL_BIN_LOG::write_incident");
if (!is_open())
DBUG_RETURN(error);
LEX_STRING const write_error_msg=
{ C_STRING_WITH_LEN("error writing to the binary log") };
Incident incident= INCIDENT_LOST_EVENTS;

Loading…
Cancel
Save