mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
5.3 merge
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2013 Monty Program Ab
|
||||
Copyright (c) 2009, 2013, Monty Program Ab
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -5024,12 +5024,18 @@ MYSQL_BIN_LOG::flush_and_set_pending_rows_event(THD *thd,
|
||||
/*
|
||||
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))
|
||||
{
|
||||
set_write_error(thd, is_transactional);
|
||||
if (check_write_error(thd) && cache_data &&
|
||||
stmt_has_updated_non_trans_table(thd))
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user