Skip to content

Commit e895041

Browse files
committed
Merge 10.2 into 10.3
2 parents d266036 + 55f4e48 commit e895041

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

cmake/os/Linux.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SET(_FILE_OFFSET_BITS 64)
4545
# Linux specific HUGETLB /large page support
4646
CHECK_SYMBOL_EXISTS(SHM_HUGETLB sys/shm.h HAVE_DECL_SHM_HUGETLB)
4747
IF(HAVE_DECL_SHM_HUGETLB)
48-
SET(HAVE_LARGE_PAGES 1)
48+
SET(HAVE_LINUX_LARGE_PAGES 1)
4949
SET(HUGETLB_USE_PROC_MEMINFO 1)
5050
SET(HAVE_LARGE_PAGE_OPTION 1)
5151
ENDIF()

config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
#cmakedefine HAVE_GCC_C11_ATOMICS 1
393393
#cmakedefine HAVE_SOLARIS_ATOMIC 1
394394
#cmakedefine HAVE_DECL_SHM_HUGETLB 1
395-
#cmakedefine HAVE_LARGE_PAGES 1
395+
#cmakedefine HAVE_LINUX_LARGE_PAGES 1
396396
#cmakedefine HUGETLB_USE_PROC_MEMINFO 1
397397
#cmakedefine NO_FCNTL_NONBLOCK 1
398398
#cmakedefine NO_ALARM 1

include/my_sys.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ extern void *my_memdup(const void *from,size_t length,myf MyFlags);
177177
extern char *my_strdup(const char *from,myf MyFlags);
178178
extern char *my_strndup(const char *from, size_t length, myf MyFlags);
179179

180-
#ifdef HAVE_LARGE_PAGES
180+
#ifdef HAVE_LINUX_LARGE_PAGES
181181
extern uint my_get_large_page_size(void);
182182
extern uchar * my_large_malloc(size_t size, myf my_flags);
183183
extern void my_large_free(uchar *ptr);
184184
#else
185185
#define my_get_large_page_size() (0)
186186
#define my_large_malloc(A,B) my_malloc_lock((A),(B))
187187
#define my_large_free(A) my_free_lock((A))
188-
#endif /* HAVE_LARGE_PAGES */
188+
#endif /* HAVE_LINUX_LARGE_PAGES */
189189

190190
void my_init_atomic_write(void);
191191
#ifdef __linux__
@@ -243,7 +243,7 @@ extern int sf_leaking_memory; /* set to 1 to disable memleak detection */
243243
extern void (*proc_info_hook)(void *, const PSI_stage_info *, PSI_stage_info *,
244244
const char *, const char *, const unsigned int);
245245

246-
#ifdef HAVE_LARGE_PAGES
246+
#ifdef HAVE_LINUX_LARGE_PAGES
247247
extern my_bool my_use_large_pages;
248248
extern uint my_large_page_size;
249249
#endif

mysql-test/suite/innodb/t/innodb-index.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
-- source include/have_innodb.inc
2+
# Embedded server tests do not support restarting.
3+
-- source include/not_embedded.inc
24

35
let $MYSQLD_DATADIR= `select @@datadir`;
46

mysys/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_C_COMPILER_ID MATCHES "SunPro")
6464
PROPERTIES COMPILE_FLAGS "${CMAKE_CURRENT_SOURCE_DIR}/my_timer_cycles.il")
6565
ENDIF()
6666

67-
IF(HAVE_LARGE_PAGES)
67+
IF(HAVE_LINUX_LARGE_PAGES)
6868
SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_largepage.c)
6969
ENDIF()
7070

mysys/my_largepage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "mysys_priv.h"
1717

18-
#ifdef HAVE_LARGE_PAGES
18+
#ifdef HAVE_LINUX_LARGE_PAGES
1919

2020
#ifdef HAVE_SYS_IPC_H
2121
#include <sys/ipc.h>
@@ -163,4 +163,4 @@ my_bool my_large_free_int(uchar *ptr)
163163
}
164164
#endif /* HAVE_DECL_SHM_HUGETLB */
165165

166-
#endif /* HAVE_LARGE_PAGES */
166+
#endif /* HAVE_LINUX_LARGE_PAGES */

mysys/my_static.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ USED_MEM* my_once_root_block=0; /* pointer to first block */
5959
uint my_once_extra=ONCE_ALLOC_INIT; /* Memory to alloc / block */
6060

6161
/* from my_largepage.c */
62-
#ifdef HAVE_LARGE_PAGES
62+
#ifdef HAVE_LINUX_LARGE_PAGES
6363
my_bool my_use_large_pages= 0;
6464
uint my_large_page_size= 0;
6565
#endif

sql/mysqld.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4386,7 +4386,7 @@ static int init_common_variables()
43864386
DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname,
43874387
server_version, SYSTEM_TYPE,MACHINE_TYPE));
43884388

4389-
#ifdef HAVE_LARGE_PAGES
4389+
#ifdef HAVE_LINUX_LARGE_PAGES
43904390
/* Initialize large page size */
43914391
if (opt_large_pages)
43924392
{
@@ -4401,7 +4401,7 @@ static int init_common_variables()
44014401
else
44024402
SYSVAR_AUTOSIZE(opt_large_pages, 0);
44034403
}
4404-
#endif /* HAVE_LARGE_PAGES */
4404+
#endif /* HAVE_LINUX_LARGE_PAGES */
44054405
#ifdef HAVE_SOLARIS_LARGE_PAGES
44064406
#define LARGE_PAGESIZE (4*1024*1024) /* 4MB */
44074407
#define SUPER_LARGE_PAGESIZE (256*1024*1024) /* 256MB */

0 commit comments

Comments
 (0)