Skip to content
Permalink
Browse files
Innodb : do not use errno on Windows to print os_file_pwrite() error.
Use GetLastError() instead.
  • Loading branch information
vaintroub committed Jun 28, 2018
1 parent 78a0646 commit 04677f4
Showing 1 changed file with 3 additions and 3 deletions.
@@ -5037,12 +5037,12 @@ os_file_write_func(
<< offset << ", " << n
<< " bytes should have been written,"
" only " << n_bytes << " were written."
" Operating system error number " << errno << "."
" Operating system error number " << IF_WIN(GetLastError(),errno) << "."
" Check that your OS and file system"
" support files of this size."
" Check also that the disk is not full"
" or a disk quota exceeded.";

#ifndef _WIN32
if (strerror(errno) != NULL) {

ib::error()
@@ -5051,7 +5051,7 @@ os_file_write_func(
}

ib::info() << OPERATING_SYSTEM_ERROR_MSG;

#endif
os_has_said_disk_full = true;
}

0 comments on commit 04677f4

Please sign in to comment.