diff options
author | Daniel Black <daniel@mariadb.org> | 2020-11-16 09:05:10 +1100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2020-11-17 07:53:55 +1100 |
commit | 8cc5d2845c0b679ca90cf6145d02c761cbce897d (patch) | |
tree | de4bcf4e1a42809df3744022335079c25c8a28bb | |
parent | 0fc0eb1e5b9015e51daef9709937be69e9e7c4f7 (diff) | |
download | mariadb-git-8cc5d2845c0b679ca90cf6145d02c761cbce897d.tar.gz |
MDEV-24125: linux large pages - Revert "Fixed centos 6 build failure"
This reverts commit 6cf8f05fd9deb900a78898576b85753e09feddaa.
Original patch assumed that MAP_HUGETLB as consistent across
achitectures which isn't the case. Defining it unconditionally
broke large pages on every achitecutre where the value differed
from x86_64.
With the EOL for Centos/RHEL6 announced in 10.5.7, <3.8 linux
kernels are no longer supported.
-rw-r--r-- | include/my_sys.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 59d88f193c6..cc1f041a2f0 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -965,12 +965,6 @@ extern ulonglong my_getcputime(void); #define MAP_NORESERVE 0 /* For irix and AIX */ #endif -/* Compatibility with pre linux 3.8 distributions */ -#ifdef __linux__ -#define MAP_HUGE_SHIFT 26 -#define MAP_HUGETLB 0x40000 -#endif - #ifdef HAVE_MMAP64 #define my_mmap(a,b,c,d,e,f) mmap64(a,b,c,d,e,f) #else |