Skip to content

Commit

Permalink
MDEV-30572: my_large_malloc will only retry on ENOMEM
Browse files Browse the repository at this point in the history
Correct error in to only say "continuing to smaller size" if it really
is.
  • Loading branch information
grooverdan committed Feb 7, 2023
1 parent acd23da commit 2b494cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysys/my_largepage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 2b494cc

Please sign in to comment.