diff options
author | Daniel Black <daniel@mariadb.org> | 2023-02-06 18:00:15 +1100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2023-02-07 21:26:52 +1100 |
commit | 2b494ccc15d500be9de22140307d6fee1b28bdc8 (patch) | |
tree | 8ab9eaf85f6d7c763d11e8fa1474995037b58a16 /mysys/my_largepage.c | |
parent | acd23da4c2363511aae7d984c24cc6847aa3f19c (diff) | |
download | mariadb-git-2b494ccc15d500be9de22140307d6fee1b28bdc8.tar.gz |
MDEV-30572: my_large_malloc will only retry on ENOMEM
Correct error in to only say "continuing to smaller size" if it really
is.
Diffstat (limited to 'mysys/my_largepage.c')
-rw-r--r-- | mysys/my_largepage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c index 0fdc4e17a26..c5fc2a1264e 100644 --- a/mysys/my_largepage.c +++ b/mysys/my_largepage.c @@ -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 " |