mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
Fix error insert to have deterministic errno (fixes test failure on mac).
This commit is contained in:
parent
a786357be1
commit
805f009360
2 changed files with 4 additions and 3 deletions
|
|
@ -4772,7 +4772,8 @@ int MYSQL_BIN_LOG::write_cache(IO_CACHE *cache)
|
|||
}
|
||||
|
||||
/* Write data to the binary log file */
|
||||
DBUG_EXECUTE_IF("fail_binlog_write_1", return ER_ERROR_ON_WRITE;);
|
||||
DBUG_EXECUTE_IF("fail_binlog_write_1",
|
||||
errno= 28; return ER_ERROR_ON_WRITE;);
|
||||
if (my_b_write(&log_file, cache->read_pos, length))
|
||||
return ER_ERROR_ON_WRITE;
|
||||
cache->read_pos=cache->read_end; // Mark buffer used up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue