mirror of
https://github.com/MariaDB/server.git
synced 2025-08-15 21:18:12 +00:00
MDEV-30572: my_large_malloc will only retry on ENOMEM
Correct error in to only say "continuing to smaller size" if it really is.
This commit is contained in:
@ -354,7 +354,7 @@ uchar *my_large_malloc(size_t *size, myf my_flags)
|
||||
ptr= NULL;
|
||||
if (my_flags & MY_WME)
|
||||
{
|
||||
if (large_page_size)
|
||||
if (large_page_size && errno == ENOMEM)
|
||||
{
|
||||
my_printf_error(EE_OUTOFMEMORY,
|
||||
"Couldn't allocate %zu bytes (Large/HugeTLB memory "
|
||||
|
Reference in New Issue
Block a user