summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/log.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc
index eab9a118147..a7f05905514 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -4452,6 +4452,14 @@ bool MYSQL_BIN_LOG::appendv(Master_info* mi, const char* buf, uint len,...)
sufficient to block SQL thread when IO thread is updating relay log here.
*/
mysql_mutex_unlock(&mi->data_lock);
+ DBUG_EXECUTE_IF("simulate_io_thd_wait_for_disk_space",
+ {
+ const char act[]= "disk_full_reached SIGNAL parked";
+ DBUG_ASSERT(opt_debug_sync_timeout > 0);
+ DBUG_ASSERT(!debug_sync_set_action(current_thd,
+ STRING_WITH_LEN(act)));
+ };);
+
do
{
if (my_b_append(&log_file,(uchar*) buf,len))