mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
ut0mem.c:
Print correct OS error number also on Windows if we run out of memory innobase/ut/ut0mem.c: Print correct OS error number also on Windows if we run out of memory
This commit is contained in:
parent
13626f52c3
commit
b5679828cf
1 changed files with 7 additions and 1 deletions
|
|
@ -88,7 +88,13 @@ ut_malloc_low(
|
|||
"InnoDB: a big enough maximum process size.\n"
|
||||
"InnoDB: We now intentionally generate a seg fault so that\n"
|
||||
"InnoDB: on Linux we get a stack trace.\n",
|
||||
n, ut_total_allocated_memory, errno);
|
||||
n, ut_total_allocated_memory,
|
||||
#ifdef __WIN__
|
||||
(ulint)GetLastError()
|
||||
#else
|
||||
(ulint)errno
|
||||
#endif
|
||||
);
|
||||
|
||||
/* Flush stderr to make more probable that the error
|
||||
message gets in the error file before we generate a seg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue