Commit 2b494ccc authored by Daniel Black's avatar Daniel Black

MDEV-30572: my_large_malloc will only retry on ENOMEM

Correct error in to only say "continuing to smaller size" if it really
is.
parent acd23da4
......@@ -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 "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment