Innodb : do not use errno on Windows to print os_file_pwrite() error.
Use GetLastError() instead.
This commit is contained in:
parent
78a0646fe4
commit
04677f44c7
@ -5037,12 +5037,12 @@ os_file_write_func(
|
|||||||
<< offset << ", " << n
|
<< offset << ", " << n
|
||||||
<< " bytes should have been written,"
|
<< " bytes should have been written,"
|
||||||
" only " << n_bytes << " were 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"
|
" Check that your OS and file system"
|
||||||
" support files of this size."
|
" support files of this size."
|
||||||
" Check also that the disk is not full"
|
" Check also that the disk is not full"
|
||||||
" or a disk quota exceeded.";
|
" or a disk quota exceeded.";
|
||||||
|
#ifndef _WIN32
|
||||||
if (strerror(errno) != NULL) {
|
if (strerror(errno) != NULL) {
|
||||||
|
|
||||||
ib::error()
|
ib::error()
|
||||||
@ -5051,7 +5051,7 @@ os_file_write_func(
|
|||||||
}
|
}
|
||||||
|
|
||||||
ib::info() << OPERATING_SYSTEM_ERROR_MSG;
|
ib::info() << OPERATING_SYSTEM_ERROR_MSG;
|
||||||
|
#endif
|
||||||
os_has_said_disk_full = true;
|
os_has_said_disk_full = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user