Skip to content

Commit

Permalink
MDEV-33397: Innodb include OS error information when failing to write…
Browse files Browse the repository at this point in the history
… to iblogfileX

Without an OS error it could one of the many errors from write.
  • Loading branch information
grooverdan committed Feb 7, 2024
1 parent 8e73149 commit e06b159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/innobase/log/log0log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,9 @@ void log_t::file::write(os_offset_t offset, span<byte> buf)
{
srv_stats.os_log_pending_writes.inc();
if (const dberr_t err= fd.write(offset, buf))
ib::fatal() << "write(" << fd.get_path() << ") returned " << err;
ib::fatal() << "write(" << fd.get_path() << ") returned " << err
<< ". Operating system error number "
<< IF_WIN(GetLastError(), errno) << ".";
srv_stats.os_log_pending_writes.dec();
srv_stats.os_log_written.add(buf.size());
srv_stats.log_writes.inc();
Expand Down

0 comments on commit e06b159

Please sign in to comment.