Commit 3b48d80b authored by Sujatha Sivakumar's avatar Sujatha Sivakumar

merge from 5.1 to 5.5

parents 0e8ce8f0 4bfeb52d
...@@ -4863,12 +4863,18 @@ MYSQL_BIN_LOG::flush_and_set_pending_rows_event(THD *thd, ...@@ -4863,12 +4863,18 @@ MYSQL_BIN_LOG::flush_and_set_pending_rows_event(THD *thd,
/* /*
Write pending event to the cache. Write pending event to the cache.
*/ */
DBUG_EXECUTE_IF("simulate_disk_full_at_flush_pending",
{DBUG_SET("+d,simulate_file_write_error");});
if (pending->write(file)) if (pending->write(file))
{ {
set_write_error(thd, is_transactional); set_write_error(thd, is_transactional);
if (check_write_error(thd) && cache_data && if (check_write_error(thd) && cache_data &&
stmt_has_updated_non_trans_table(thd)) stmt_has_updated_non_trans_table(thd))
cache_data->set_incident(); cache_data->set_incident();
delete pending;
cache_data->set_pending(NULL);
DBUG_EXECUTE_IF("simulate_disk_full_at_flush_pending",
{DBUG_SET("-d,simulate_file_write_error");});
DBUG_RETURN(1); DBUG_RETURN(1);
} }
......
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