diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-06-28 17:23:05 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-06-28 17:23:05 +0100 |
commit | 04677f44c7a0faee366de265c92175daadf45bc9 (patch) | |
tree | 8f6b9d752ebe283edbc569f9f2968c55b3fc11f2 | |
parent | 78a0646fe4ab7d58d900192ef7f4df905ed7442e (diff) | |
download | mariadb-git-04677f44c7a0faee366de265c92175daadf45bc9.tar.gz |
Innodb : do not use errno on Windows to print os_file_pwrite() error.
Use GetLastError() instead.
-rw-r--r-- | storage/innobase/os/os0file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 568239b79ed..01b801461d6 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -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; } |