diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-03-30 18:27:02 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-03-30 18:27:02 +0300 |
commit | e895041ba915b4b01f35755d569038abba06d4a7 (patch) | |
tree | 47c751ffe9409796c80b46e308680eb3ca95d6fb | |
parent | d2660362920a82588508028f263dad9c16f08865 (diff) | |
parent | 55f4e4800bc5248921b4896f4b92b816e5e4478c (diff) | |
download | mariadb-git-e895041ba915b4b01f35755d569038abba06d4a7.tar.gz |
Merge 10.2 into 10.3
-rw-r--r-- | cmake/os/Linux.cmake | 2 | ||||
-rw-r--r-- | config.h.cmake | 2 | ||||
-rw-r--r-- | include/my_sys.h | 6 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/innodb-index.test | 2 | ||||
-rw-r--r-- | mysys/CMakeLists.txt | 2 | ||||
-rw-r--r-- | mysys/my_largepage.c | 4 | ||||
-rw-r--r-- | mysys/my_static.c | 2 | ||||
-rw-r--r-- | sql/mysqld.cc | 4 |
8 files changed, 13 insertions, 11 deletions
diff --git a/cmake/os/Linux.cmake b/cmake/os/Linux.cmake index 37a9be9a867..e3520f3accd 100644 --- a/cmake/os/Linux.cmake +++ b/cmake/os/Linux.cmake @@ -45,7 +45,7 @@ SET(_FILE_OFFSET_BITS 64) # Linux specific HUGETLB /large page support CHECK_SYMBOL_EXISTS(SHM_HUGETLB sys/shm.h HAVE_DECL_SHM_HUGETLB) IF(HAVE_DECL_SHM_HUGETLB) - SET(HAVE_LARGE_PAGES 1) + SET(HAVE_LINUX_LARGE_PAGES 1) SET(HUGETLB_USE_PROC_MEMINFO 1) SET(HAVE_LARGE_PAGE_OPTION 1) ENDIF() diff --git a/config.h.cmake b/config.h.cmake index 4d14b621d91..d3a76c77c39 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -392,7 +392,7 @@ #cmakedefine HAVE_GCC_C11_ATOMICS 1 #cmakedefine HAVE_SOLARIS_ATOMIC 1 #cmakedefine HAVE_DECL_SHM_HUGETLB 1 -#cmakedefine HAVE_LARGE_PAGES 1 +#cmakedefine HAVE_LINUX_LARGE_PAGES 1 #cmakedefine HUGETLB_USE_PROC_MEMINFO 1 #cmakedefine NO_FCNTL_NONBLOCK 1 #cmakedefine NO_ALARM 1 diff --git a/include/my_sys.h b/include/my_sys.h index 8ebc45bae95..61ca6085ba7 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -177,7 +177,7 @@ extern void *my_memdup(const void *from,size_t length,myf MyFlags); extern char *my_strdup(const char *from,myf MyFlags); extern char *my_strndup(const char *from, size_t length, myf MyFlags); -#ifdef HAVE_LARGE_PAGES +#ifdef HAVE_LINUX_LARGE_PAGES extern uint my_get_large_page_size(void); extern uchar * my_large_malloc(size_t size, myf my_flags); extern void my_large_free(uchar *ptr); @@ -185,7 +185,7 @@ extern void my_large_free(uchar *ptr); #define my_get_large_page_size() (0) #define my_large_malloc(A,B) my_malloc_lock((A),(B)) #define my_large_free(A) my_free_lock((A)) -#endif /* HAVE_LARGE_PAGES */ +#endif /* HAVE_LINUX_LARGE_PAGES */ void my_init_atomic_write(void); #ifdef __linux__ @@ -243,7 +243,7 @@ extern int sf_leaking_memory; /* set to 1 to disable memleak detection */ extern void (*proc_info_hook)(void *, const PSI_stage_info *, PSI_stage_info *, const char *, const char *, const unsigned int); -#ifdef HAVE_LARGE_PAGES +#ifdef HAVE_LINUX_LARGE_PAGES extern my_bool my_use_large_pages; extern uint my_large_page_size; #endif diff --git a/mysql-test/suite/innodb/t/innodb-index.test b/mysql-test/suite/innodb/t/innodb-index.test index 8b9d2068499..b34133a92e9 100644 --- a/mysql-test/suite/innodb/t/innodb-index.test +++ b/mysql-test/suite/innodb/t/innodb-index.test @@ -1,4 +1,6 @@ -- source include/have_innodb.inc +# Embedded server tests do not support restarting. +-- source include/not_embedded.inc let $MYSQLD_DATADIR= `select @@datadir`; diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt index c911cd064cd..6988d66376d 100644 --- a/mysys/CMakeLists.txt +++ b/mysys/CMakeLists.txt @@ -64,7 +64,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_C_COMPILER_ID MATCHES "SunPro") PROPERTIES COMPILE_FLAGS "${CMAKE_CURRENT_SOURCE_DIR}/my_timer_cycles.il") ENDIF() -IF(HAVE_LARGE_PAGES) +IF(HAVE_LINUX_LARGE_PAGES) SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_largepage.c) ENDIF() diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c index 59f815a9d87..dab63ae3817 100644 --- a/mysys/my_largepage.c +++ b/mysys/my_largepage.c @@ -15,7 +15,7 @@ #include "mysys_priv.h" -#ifdef HAVE_LARGE_PAGES +#ifdef HAVE_LINUX_LARGE_PAGES #ifdef HAVE_SYS_IPC_H #include <sys/ipc.h> @@ -163,4 +163,4 @@ my_bool my_large_free_int(uchar *ptr) } #endif /* HAVE_DECL_SHM_HUGETLB */ -#endif /* HAVE_LARGE_PAGES */ +#endif /* HAVE_LINUX_LARGE_PAGES */ diff --git a/mysys/my_static.c b/mysys/my_static.c index 08edf2c4200..f2a9fbb7335 100644 --- a/mysys/my_static.c +++ b/mysys/my_static.c @@ -59,7 +59,7 @@ USED_MEM* my_once_root_block=0; /* pointer to first block */ uint my_once_extra=ONCE_ALLOC_INIT; /* Memory to alloc / block */ /* from my_largepage.c */ -#ifdef HAVE_LARGE_PAGES +#ifdef HAVE_LINUX_LARGE_PAGES my_bool my_use_large_pages= 0; uint my_large_page_size= 0; #endif diff --git a/sql/mysqld.cc b/sql/mysqld.cc index fe2b9c8d13a..edac9d466f7 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4386,7 +4386,7 @@ static int init_common_variables() DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname, server_version, SYSTEM_TYPE,MACHINE_TYPE)); -#ifdef HAVE_LARGE_PAGES +#ifdef HAVE_LINUX_LARGE_PAGES /* Initialize large page size */ if (opt_large_pages) { @@ -4401,7 +4401,7 @@ static int init_common_variables() else SYSVAR_AUTOSIZE(opt_large_pages, 0); } -#endif /* HAVE_LARGE_PAGES */ +#endif /* HAVE_LINUX_LARGE_PAGES */ #ifdef HAVE_SOLARIS_LARGE_PAGES #define LARGE_PAGESIZE (4*1024*1024) /* 4MB */ #define SUPER_LARGE_PAGESIZE (256*1024*1024) /* 256MB */ |