Skip to content

Commit e06b159

Browse files
committed
MDEV-33397: Innodb include OS error information when failing to write to iblogfileX
Without an OS error it could one of the many errors from write.
1 parent 8e73149 commit e06b159

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/innobase/log/log0log.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,9 @@ void log_t::file::write(os_offset_t offset, span<byte> buf)
518518
{
519519
srv_stats.os_log_pending_writes.inc();
520520
if (const dberr_t err= fd.write(offset, buf))
521-
ib::fatal() << "write(" << fd.get_path() << ") returned " << err;
521+
ib::fatal() << "write(" << fd.get_path() << ") returned " << err
522+
<< ". Operating system error number "
523+
<< IF_WIN(GetLastError(), errno) << ".";
522524
srv_stats.os_log_pending_writes.dec();
523525
srv_stats.os_log_written.add(buf.size());
524526
srv_stats.log_writes.inc();

0 commit comments

Comments
 (0)