sourceinclude/have_debug.inc;sourceinclude/have_innodb.inc;sourceinclude/have_log_bin.inc;sourceinclude/have_binlog_format_mixed_or_statement.inc;CALLmtr.add_suppression("Error writing file 'master-bin'");RESETMASTER;CREATETABLEt1(aINTPRIMARYKEY)ENGINE=innodb;INSERTINTOt1VALUES(0);SETSESSIONdebug='+d,fail_binlog_write_1';--errorER_ERROR_ON_WRITEINSERTINTOt1VALUES(1);--errorER_ERROR_ON_WRITEINSERTINTOt1VALUES(2);SETSESSIONdebug='';INSERTINTOt1VALUES(3);SELECT*FROMt1;# Actually the output from this currently shows a bug.# The injected IO error leaves partially written transactions in the binlog in# the form of stray "BEGIN" events.