Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream 5.7.24 into Percona Server #2729

Merged
merged 178 commits into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
95b3813
Raise version number after cloning 5.5.61
bkandasa May 28, 2018
ac54fac
Raise version number after cloning 5.6.41
bkandasa May 28, 2018
7e5e631
Raise version number after cloning 5.7.23
bkandasa May 28, 2018
0f79680
Bug #27325898 - INNODB: ASSERTION FAILURE IN THREAD
sachinagarwal1111 May 28, 2018
a152d9f
BUG#27807237: MTR --MANUAL-BOOT-GDB FAILS ON MYSQL-5.7 BUILDS
Apr 28, 2018
af43dc2
BUG#26225783 MYSQL CRASH ON CREATE TABLE (REPRODUCEABLE) -> INNODB: A
May 29, 2018
53e74a1
Bug #22958077 ORDER BY LAST_SEEN_TRANSACTION RESULTS IN EMPTY SET (OR…
vpvenugo May 29, 2018
c3206a9
BUG#27882096 DNS BASED SEEDS RESOLVING TO ITSELF CAUSES GR TO NOT START
tiagoportelajorge May 25, 2018
005ef9f
BUG#26848813: INDEXED COLUMN CAN'T BE CHANGED FROM VARCHAR(15)
May 30, 2018
32bdd32
Bug#24687073 - SET PASSWORD REPLICATES INCORRECTLY BETWEEN
May 30, 2018
f8da281
Bug #28112444 PB2 FAILURE OF PARTITION_NAMES.TEST IN WEEKLY-5.7 ON WI…
Jun 1, 2018
fdc0314
BUG#27638268: GTID AUTO SKIP DOES NOT WORK FOR QUERIES WITH PARSER ER…
May 8, 2018
365111c
Fix Bug 27577612 - CONCURRENT SERIALIZABLE TRANSACTIONS CAN INSERT INTO
Jun 6, 2018
70c2357
Fix Bug#26375771: INNODB: ASSERTION FAILURE: MACH0DATA.IC:308:VAL > 0X7F
Jun 6, 2018
4f9c65e
Bug#27891472: FLUSH LOGS WITH NO LOG FILE PERMISSION LEADS HANG
Jun 7, 2018
7b2f4b8
Fix build break with modern compilers:
May 23, 2018
a2776cf
NULL Merge branch 'mysql-5.5' into mysql-5.6
Jun 12, 2018
6381595
NULL Merge branch 'mysql-5.6' into mysql-5.7
Jun 12, 2018
f9064a4
Bug26848813: INDEXED COLUMN CAN'T BE CHANGED FROM VARCHAR(15)
Jun 13, 2018
94208bc
Fix Bug#28104394 - INNODB 5.7 PRIMARY KEY SCAN LACK DATA
Jun 14, 2018
cad692f
Bug#27980823: HEAP OVERFLOW VULNERABILITIES IN MYSQL CLIENT LIBRARY
ivo-roylev Jun 14, 2018
9be1f53
Bug#28091735:COMMIT HANGS IF BINLOG_GROUP_COMMIT_SYNC_DELAY NOT MULTI…
Jun 14, 2018
109fd04
Bug#27903881 - [MYSQL 8.0 GA RELEASE & DEBUG BUILD]
Jun 14, 2018
8b64d2b
Merge branch 'mysql-5.5' into mysql-5.6
ivo-roylev Jun 15, 2018
1c7f855
Null-merge from 5.6. Already pushed in 5.7
ivo-roylev Jun 15, 2018
06bc670
Merge branch 'mysql-5.5' into mysql-5.6
ivo-roylev Jun 15, 2018
e48d775
Bug#27980823: HEAP OVERFLOW VULNERABILITIES IN MYSQL CLIENT LIBRARY
ivo-roylev Jun 14, 2018
5c86204
WL#11447 Refactor Audit Log synchronization to get rid of rwlock
maras007 Jun 16, 2018
163b32f
Jun 18, 2018
65e2fc3
Bug#27990381 DEB: BACKPORT FIX FOR #24008883 TO 5.7
ltangvald Nov 30, 2017
e1fdeb2
Bug#27919254 MYSQL USER ESCALATES ITS PRIVILEGE BY PLACING ARBITRARY …
trosten Jun 20, 2018
68c67bd
Merge branch 'mysql-5.5' into mysql-5.6
trosten Jun 20, 2018
a77ab47
Merge branch 'mysql-5.6' into mysql-5.7
trosten Jun 20, 2018
cf86a8f
Bug#27724519: CONTRIBUTION BY FACEBOOK: AVOID A CRASH IN HA_STATISTIC…
Jun 20, 2018
79176ee
Merge branch 'mysql-5.6' into mysql-5.7
Jun 21, 2018
f544e3f
Bug #27804668 CRASH DUE TO SEGMENTATION FAULT IN FIL_SPACE_IS_BEING…
Jun 22, 2018
f7bfaea
Bug #28068293 KILLING QUERY THAT IS WAITING FOR LOCK VIA FOREIGN KEY…
Jun 24, 2018
1f610f7
Bug#28099963 POSSIBLY UNUSED FUNCTIONS IN XDR_UTILS
tvale Jun 25, 2018
3c8f903
Bug#28172538 YEAR RANGE CHECK FAILS WITH MAX YEAR FLOAT CONSTANT
Jun 25, 2018
12bfae0
Bug#27912873 CRASH: SEGMENTATION FAULT IN HA_INNOBASE::INDEX_TYPE()
sachinagarwal1111 Jun 26, 2018
2429c5e
Jun 26, 2018
d672386
Jun 27, 2018
143ffa3
BUG#26306357: MTR SOMETIME DOES NOT WRITE TEST NAME TO THE LOGS ON WI…
nacarvalho Jun 27, 2018
78092b1
BUG#28203341: MTR: BACK-PORT THE FIX FOR BUG#28061910 TO 5.7
Jun 19, 2018
06f91f5
Bug#27373559 COMMIT ORDER DEADLOCK + RETRY LOGIC IS NOT CONSIDERING
Jun 29, 2018
22e99fc
Bug#27799513: POTENTIAL DOUBLE FREE OR CORRUPTION OF HEAP
Jun 29, 2018
ffe1610
Merge branch 'mysql-5.5' into mysql-5.6
Jun 29, 2018
241a723
Merge branch 'mysql-5.6' into mysql-5.7
Jun 29, 2018
cd3b8d4
Jun 29, 2018
fadc507
Jun 29, 2018
c071e85
Bug#27610678 SEMI-SYNC REPLICATION DOESN'T WORK FOR MINUTES AFTER RES…
Jun 29, 2018
b1cc933
Bug #27714748: @@PARSER_MAX_MEM_SIZE DOES NOT WORK FOR ROUTINES
Jun 30, 2018
f518bd9
Bug #27931181: RESTAURE DUMP CREATED WITH 5.7.22 ON 8.0.11
Jul 2, 2018
8144b1c
Bug#27610678 SEMI-SYNC REPLICATION DOESN'T WORK FOR MINUTES
Jul 2, 2018
42e748c
Bug#26876608 MYSQL CRASH:CACHE_POLICY=CACHING|INNODB_ONLY & SET GLOBA…
Jul 3, 2018
6a44cb7
Merge branch 'mysql-5.6' into mysql-5.7
Jul 3, 2018
28b0521
Bug#28093271 - MYSQL OVERLOADS -b SHORT OPTION:
Jul 3, 2018
7c5bdb2
Merge branch 'mysql-5.5' into mysql-5.6
Jul 3, 2018
484da08
Merge branch 'mysql-5.6' into mysql-5.7
Jul 3, 2018
7d6110e
Bug#27411175: RESET SLAVE ALL DOES NOT CLEAR
Jul 6, 2018
bac3ed5
Bug#28088177: STOP GROUP_REPLICATION HANG WITH SELECT REPLICATION_CON…
Jul 6, 2018
c542717
Bug #26275510 BUNDLED ZLIB DOESN'T INCLUDE FIXES FOR SOME VULNERABI…
Jul 9, 2018
51f1b83
Bug #26275510 BUNDLED ZLIB DOESN'T INCLUDE FIXES FOR SOME VULNERABI…
Jul 9, 2018
b5a3445
Bug #26275510 BUNDLED ZLIB DOESN'T INCLUDE FIXES FOR SOME VULNERABI…
Jul 9, 2018
393b1ec
Bug#27411175: RESET SLAVE ALL DOES NOT CLEAR
Jul 10, 2018
cdc1d6e
Bug #27545888 MYSQLD CRASHES WHEN RENAMING AN INNODB TABLE WITH FOREIGN
Jul 11, 2018
76703a5
Merge branch 'mysql-5.6' into mysql-5.7
Jul 11, 2018
1faf94c
Jul 11, 2018
ab81a4e
Jul 11, 2018
eaf6b46
BUG#28316456: BACKPORT MYSQLTEST_VARDIR_ABS TO 5.7
Jul 11, 2018
e08dee4
wl#11571 : Deprecate Shared tablespaces in partitioned table
mayprasa Jul 12, 2018
496e613
Jul 12, 2018
71b88c4
Jul 12, 2018
3858e79
Bug #27931181: RESTAURE DUMP CREATED WITH 5.7.22 ON 8.0.11
Jul 12, 2018
aee91b1
Bug#28061409 WITH_GMOCK HANDLE WINDOWS PATHS PROPERLY
May 22, 2018
b15b4ac
Bug #27493633: REGRESSION IN FEDERATED STORAGE ENGINE AFTER GCC 7 FIXES
Jul 5, 2018
78aa2f3
Bug#28332722 TURN OFF INCREMENTAL LINKING ON WINDOWS
May 22, 2018
c95a5bb
Bug#28200422 USE CTAGS RATHER THAN ETAGS FOR GENERATING TAGS FILE
Jul 3, 2018
00985f4
Bug#27301317 : RPL.RPL_MULTI_SOURCE_CORRUPT_REPOSITORY FAILS WITH RES…
Jul 12, 2018
e52921d
Bug #27973409:GCOL: INCORRECT BEHAVIOR WITH STRING FUNCTION
Jul 13, 2018
66d3c8f
Bug 27577612 - CONCURRENT SERIALIZABLE TRANSACTIONS CAN INSERT INTO
Jul 13, 2018
1452ca7
Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM <
sachinagarwal1111 Jul 16, 2018
241cd6d
Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM <
sachinagarwal1111 Jul 16, 2018
53806e3
Bug #27930505 RBR HEAP BUFFER OVERFLOW IN
vpvenugo Jul 16, 2018
71d039f
Merge branch 'mysql-5.6' into mysql-5.7
vpvenugo Jul 16, 2018
6ff9cb4
Bug#27463864: UNINSTALLATION POPS UP AN IRRELEVANT/SUSPICIOUS INFORMA…
May 21, 2018
3987b21
Merge branch 'mysql-5.6' into mysql-5.7
Jul 17, 2018
a4b2c22
Jul 18, 2018
44d55d9
NULL Merge from mysql-5.6 to mysql-5.7
Jul 18, 2018
b6c038d
Fix build break with modern compilers:
Jul 18, 2018
9b76960
Bug#20597049 : MAIN.PARTITION_PRUNING FAILS OCCASIONALLY DUE TO DIFFE…
Jul 18, 2018
6c93813
Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM <
sachinagarwal1111 Jul 18, 2018
648df73
Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM <
sachinagarwal1111 Jul 18, 2018
394be4f
Bug#28366648 MTR FOR MYSQL5.5 DOES NOT WORK WITH MODERN PERL VERSIONS
Jul 18, 2018
8a7db4c
Bug#28200422 USE CTAGS RATHER THAN ETAGS FOR GENERATING TAGS FILE
Jul 3, 2018
f1aeb92
Merge branch 'mysql-5.5' into mysql-5.6
Jul 19, 2018
997cedc
NULL Merge branch 'mysql-5.6' into mysql-5.7
Jul 19, 2018
dbfd8b6
Bug#28238072 - BACKPORT BUG#27918666 'REMOVE THE EXIT() CALL FROM DIE_OP
Jul 20, 2018
1501557
BUG#27788685: NO WARNING WHEN TRUNCATING A STRING WITH DATA
karthik-kamath Jul 23, 2018
a153699
Merge branch 'mysql-5.5' into mysql-5.6
karthik-kamath Jul 23, 2018
96820e0
Merge branch 'mysql-5.6' into mysql-5.7
karthik-kamath Jul 23, 2018
23cb235
Jul 23, 2018
56b5d42
Merge branch 'mysql-5.5.61-release' into mysql-5.5
Jul 26, 2018
fb9d128
Upmerge of the 5.5.61 build
Jul 26, 2018
b49dd73
Upmerge of the 5.5.61 build
Jul 26, 2018
87dde0a
Merge branch 'mysql-5.6.41-release' into mysql-5.6
surbhat1595 Jul 27, 2018
d907b3f
Upmerge of the 5.6.41 build
surbhat1595 Jul 27, 2018
cd0a486
Bug#28088177: STOP GROUP_REPLICATION HANG WITH SELECT REPLICATION_CON…
Jul 27, 2018
39d6b44
Bug#27798708 ALTER TABLE CRASHES: ASSERTION FAILURE: DICT0DICT.CC:142…
Jul 30, 2018
46c7354
WL#11927 Support SASL mechanism SCRAM-SHA-1 on Windows.
Jul 30, 2018
cf747aa
Jul 31, 2018
4a3761a
Bug #24786290: REPLICATION BREAKS AFTER BUG #74145 HAPPENS IN MASTER
vpvenugo Aug 2, 2018
60b4186
Merge branch 'mysql-5.6' into mysql-5.7
vpvenugo Aug 2, 2018
602c387
Aug 2, 2018
f9682a8
Aug 2, 2018
093c654
Bug #24786290: REPLICATION BREAKS AFTER BUG #74145 HAPPENS IN MASTER
vpvenugo Aug 3, 2018
ab5c455
Merge branch 'mysql-5.6' into mysql-5.7
vpvenugo Aug 3, 2018
fe5df42
BUG#28144933 - MYSQL-SERVER RPM DOES NOT INSTALL PERL-DATA-DUMPER…
bkandasa Aug 3, 2018
3d291d5
Merge branch 'mysql-5.5' into mysql-5.6
bkandasa Aug 3, 2018
be569f5
Merge branch 'mysql-5.6' into mysql-5.7
bkandasa Aug 3, 2018
0327e99
Bug#28384862: PB2 RPL_SERVER_UUID.TEST IS FAILING
Aug 3, 2018
13725c8
Merge branch 'mysql-5.6' into mysql-5.7
Aug 3, 2018
af2f2e1
Bug#28092714: GR RECOVERY CAN RETRY INFINITELY IF COUNT IS MODIFIED T…
Aug 6, 2018
fd903d2
BUG#28438281: MYSQL-TEST-RUN DOESN'T LOOK FOR MYSQL_CLIENT_TEST IN THE
Aug 8, 2018
5b5d2a9
BUG#27539838: NOT ALL ABORTED CONNECTS ARE REPORTED TO
karthik-kamath Aug 10, 2018
8309683
Aug 10, 2018
9a9f06a
Aug 11, 2018
f333e44
BUG#27539838: NOT ALL ABORTED CONNECTS ARE REPORTED TO
karthik-kamath Aug 11, 2018
b48d7d6
Bug#27182010: SUBQUERY INCORRECTLY SHOWS DUPLICATE VALUES
Aug 12, 2018
05a8e74
Merge branch 'mysql-5.6' into mysql-5.7
Aug 12, 2018
16a44d2
Bug#28470420 BACKPORT MYSQLTEST_VARDIR_ABS TO 5.6
Aug 13, 2018
8d62f5b
Null Merge branch 'mysql-5.6' into mysql-5.7
Aug 13, 2018
195f946
BUG#27903831 [MYSQL 8.0 GA DEBUG BUILD] ASSERTION `!THD->HAS_GTID_CON…
Aug 13, 2018
8877c64
Bug#28395278 - SIG 11 IN MY_PRINTF_ERROR
sachinagarwal1111 Aug 14, 2018
cd64cf4
Bug#28395278 - SIG 11 IN MY_PRINTF_ERROR
sachinagarwal1111 Aug 14, 2018
b2e8c0f
Bug #28471072 MYSQL 5.7.23 CMAKE FAIL WITH 'UNKNOWN CMAKE COMMAND "AD…
Aug 14, 2018
7cdaa49
Jul 17, 2018
2e8661d
Bug#28068224: CONFIG ISSUE MAKES SERVER SKIPS OWN DETAILS IN ER_GRP_R…
Aug 16, 2018
6e9ded8
Bug#28464478: GROUP_MEMBER_INFO::CONFLICT_DETECTION_ENABLE IS ALWAYS …
Aug 16, 2018
006b367
Bug#23320254 TEST CASES ARE CONSTANTLY HANGING AND GENERATE MEMORY LE…
tvale Aug 16, 2018
e93e8db
Bug#28505638 REWRITE INNODB TESTS TO IGNORE EXPECTED ASAN ERRORS
Aug 15, 2018
b84c64e
Bug #27921932 UPDATING ROW WITH GENERATED COLUMN DURING ALTER TABLE
Aug 18, 2018
192ed2b
Bug #28145710: SQL_SAFE_UPDATES ERROR IS INSUFFICIENTLY
Aug 18, 2018
a653fca
Bug #26791931: INCORRECT BEHAVIOR IN ALTER TABLE REORGANIZE
Aug 19, 2018
1be0099
Merge branch 'mysql-5.5' into mysql-5.6
Aug 19, 2018
18b72ba
Merge branch 'mysql-5.6' into mysql-5.7
Aug 19, 2018
962855f
Problem:
Aug 20, 2018
add44d9
Merge branch 'mysql-5.6' into mysql-5.7
Aug 20, 2018
bac287c
Bug#27788907 SOME FILE OPERATIONS IN MF_IOCACHE2.C ARE NOT INSTRUMENTED
marcalff Aug 17, 2018
869d19d
Merge branch 'mysql-5.5' into mysql-5.6
marcalff Aug 20, 2018
596a839
Merge branch 'mysql-5.6' into mysql-5.7
marcalff Aug 20, 2018
bb214b8
Bug #28145710: SQL_SAFE_UPDATES ERROR IS INSUFFICIENTLY
Aug 21, 2018
d973217
WL#12179 Deprecate TABLESPACE=innodb_file_per_table and TABLESPACE=in…
Aug 20, 2018
a3bdf74
Bug#27737195: NO ERROR FOR --CACHING_SHA2_PASSWORD_PRIVATE_KEY_PATH=I…
harinvadodaria Aug 23, 2018
c13f054
Aug 20, 2018
ec98829
Fix ASAN error in unit test:
Aug 20, 2018
4ec2158
Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES
sachinagarwal1111 Aug 24, 2018
d00eb78
Bug#21339079 REPORTED LOCATION OF INNODB MERGE TEMP FILE IS WRONG
Aug 24, 2018
b8b55de
Merge branch 'mysql-5.6' into mysql-5.7
Aug 24, 2018
cdc5e88
WL#12064: Backport WL#11568 to MySQL 5.7
Metaluim Aug 6, 2018
8637920
WL#7722 Data masking
Aug 27, 2018
65ffeb9
Bug#28379285: CRASHING IN QUICK_ROR_INTERSECT_SELECT::GET_NEXT()!
Aug 28, 2018
0bbbbd8
Merge branch 'mysql-5.6' into mysql-5.7
Aug 28, 2018
52c2fde
Bug#28541029 PKGVER FAILED FOR WINDOWS X86-64BIT MSI PACKAGES - BOTH …
Sep 3, 2018
219d87b
Aug 29, 2018
12c40c0
Sep 14, 2018
fa25ffd
Bug #27968952 INNODB CRASH/CORRUPTION WITH TEXT PREFIX INDEXES
sachinagarwal1111 Sep 19, 2018
8a998b0
Sep 28, 2018
0b23064
BUG#28727698 - FEDORA29: UPGRADE FROM MARIADB TO MYSQL 8.0.13 IS FAIL…
bkandasa Oct 2, 2018
1ceca7b
BUG#28737143 - SWITCH TO NON DEFAULT OPENSSL 1.0.X ON FEDORA29, 1.1.1…
bkandasa Oct 3, 2018
d202923
Deb packaging: Add support for Ubuntu 18.10 (Cosmic Cuttlefish)
ltangvald Jun 18, 2018
e13e014
Implemented PS-4709 (Merge MySQL 5.7.24) (reverted orphan 913071c)
percona-ysorokin Nov 21, 2018
7e88b08
Implemented PS-4709 (Merge MySQL 5.7.24) (reverted orphan 3e38cf4)
percona-ysorokin Nov 21, 2018
ec98922
Implemented PS-4709 (Merge MySQL 5.7.24) (docs)
percona-ysorokin Nov 21, 2018
03d6c4a
Implemented PS-4709 (Merge MySQL 5.7.24) (merge with conflicts)
percona-ysorokin Nov 21, 2018
6751da9
Implemented PS-4709 (Merge MySQL 5.7.24) (conflicts resolved)
percona-ysorokin Nov 26, 2018
3511dc7
Implemented PS-4709 (Merge MySQL 5.7.24) (reverted e93e8db)
percona-ysorokin Nov 27, 2018
5e545b8
Merge branch '5.7' into ps-5.7.24-merge
percona-ysorokin Nov 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -241,6 +241,7 @@ INCLUDE(zlib)
INCLUDE(lz4)
INCLUDE(libevent)
INCLUDE(ssl)
INCLUDE(sasl)
INCLUDE(readline)
INCLUDE(protobuf)
INCLUDE(mysql_version)
Expand Down Expand Up @@ -532,6 +533,12 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/libbinlogevents/export)
# Add bundled or system zlib.
MYSQL_CHECK_ZLIB_WITH_COMPRESS()
IF(BUILD_BUNDLED_ZLIB)
INCLUDE_DIRECTORIES(SYSTEM
${CMAKE_CURRENT_SOURCE_DIR}/zlib
${CMAKE_CURRENT_BINARY_DIR}/zlib
)
ENDIF()
# Add bundled yassl/taocrypt or system openssl.
MYSQL_CHECK_SSL()
# Add system/bundled editline.
Expand All @@ -540,6 +547,8 @@ MYSQL_CHECK_EDITLINE()
MYSQL_CHECK_LIBEVENT()
# Add lz4 library
MYSQL_CHECK_LZ4()
# Add SASL library
MYSQL_CHECK_SASL()
# Add protoc and libprotobuf
IF(NOT WITHOUT_SERVER)
MYSQL_CHECK_PROTOBUF()
Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=7
MYSQL_VERSION_PATCH=23
MYSQL_VERSION_EXTRA=-25
MYSQL_VERSION_PATCH=24
MYSQL_VERSION_EXTRA=-26
3 changes: 1 addition & 2 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -17,7 +17,6 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/client
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/mysys_ssl
${ZLIB_INCLUDE_DIR}
${LZ4_INCLUDE_DIR}
${SSL_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/libmysql
Expand Down
2 changes: 1 addition & 1 deletion client/mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ static struct my_option my_long_options[] =
{"bind-address", 0, "IP address to bind to.",
(uchar**) &opt_bind_addr, (uchar**) &opt_bind_addr, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"binary-as-hex", 'b', "Print binary data as hex", &opt_binhex, &opt_binhex,
{"binary-as-hex", 0, "Print binary data as hex", &opt_binhex, &opt_binhex,
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"character-sets-dir", OPT_CHARSETS_DIR,
"Directory for character set files.", &charsets_dir,
Expand Down
36 changes: 34 additions & 2 deletions client/mysqldump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,37 @@ static void restore_cs_variables(FILE *sql_file,
(const char *) delimiter);
}

/*
This function will remove specific sql mode.

@param[in] sql_mode Original sql mode from where input mode needs to
be removed.
@param[in] replace_mode sql mode which needs to be removed from original
sql mode.
@param[in] replace_len length of sql mode which needs to be removed.

@retval 1 replace_mode is not present
0 replace_mode is removed successfully
*/
static int remove_sql_mode(char* sql_mode, const char* replace_mode,
size_t replace_len) {
char *start = strstr(sql_mode, replace_mode);
/* nothing to replace */
if (!start)
return 1;
/* sql mode to replace is the only sql mode present or the last one */
if (strlen(start) == replace_len) {
if (start == sql_mode)
*start = 0;
else
start[-1] = 0;
}
else {
const char *next = start + replace_len + 1;
memmove(start, next, strlen(next) + 1);
}
return 0;
}

static void switch_sql_mode(FILE *sql_file,
const char *delimiter,
Expand Down Expand Up @@ -2617,7 +2648,7 @@ static uint dump_events_for_db(char *db)
"The following dump may be incomplete.\n"
"--\n");
}

remove_sql_mode(row[1], C_STRING_WITH_LEN("NO_AUTO_CREATE_USER"));
switch_sql_mode(sql_file, delimiter, row[1]);

switch_time_zone(sql_file, delimiter, row[2]);
Expand Down Expand Up @@ -2852,7 +2883,7 @@ static uint dump_routines_for_db(char *db)
"--\n");
}


remove_sql_mode(row[1], C_STRING_WITH_LEN("NO_AUTO_CREATE_USER"));
switch_sql_mode(sql_file, ";", row[1]);

fprintf(sql_file,
Expand Down Expand Up @@ -4199,6 +4230,7 @@ static int dump_trigger(FILE *sql_file, MYSQL_RES *show_create_trigger_rs,
row[3], /* character_set_results */
row[4]); /* collation_connection */

remove_sql_mode(row[1], C_STRING_WITH_LEN("NO_AUTO_CREATE_USER"));
switch_sql_mode(sql_file, ";", row[1]);

if (opt_drop_trigger)
Expand Down
9 changes: 5 additions & 4 deletions cmake/os/Windows.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -114,10 +114,11 @@ IF(MSVC)
SET("${flag}" "${${flag}} /EHsc")
ENDFOREACH()

# Fix CMake's predefined huge stack size
FOREACH(type EXE SHARED MODULE)
STRING(REGEX REPLACE "/STACK:([^ ]+)" "" CMAKE_${type}_LINKER_FLAGS "${CMAKE_${type}_LINKER_FLAGS}")
STRING(REGEX REPLACE "/INCREMENTAL:([^ ]+)" "" CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO}")
SET(CMAKE_${type}_LINKER_FLAGS_DEBUG
"${CMAKE_${type}_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO")
SET(CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO
"${CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO} /INCREMENTAL:NO")
ENDFOREACH()

# Mark 32 bit executables large address aware so they can
Expand Down
4 changes: 2 additions & 2 deletions cmake/plugin.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -64,7 +64,7 @@ MACRO(MYSQL_ADD_PLUGIN)
${CMAKE_SOURCE_DIR}/sql/auth
${CMAKE_SOURCE_DIR}/regex
${SSL_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR})
)

LIST(GET ARG_DEFAULT_ARGS 0 plugin)
SET(SOURCES ${ARG_DEFAULT_ARGS})
Expand Down
62 changes: 62 additions & 0 deletions cmake/sasl.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2.0,
# as published by the Free Software Foundation.
#
# This program is also distributed with certain software (including
# but not limited to OpenSSL) that is licensed under separate terms,
# as designated in a particular file or component or in included license
# documentation. The authors of MySQL hereby grant you an additional
# permission to link the program and your derivative works with the
# separately licensed software that they have included with MySQL.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License, version 2.0, for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

# cmake -DWITH_SASL=system|path
# system is the default
#
# Sets SASL_LIBRARY. If not found, SASL_LIBRARY="".

MACRO (FIND_SYSTEM_SASL)
FIND_LIBRARY(SASL_SYSTEM_LIBRARY NAMES "sasl2" "sasl")
IF (SASL_SYSTEM_LIBRARY)
SET(SYSTEM_SASL_FOUND 1)
SET(SASL_LIBRARY ${SASL_SYSTEM_LIBRARY})
MESSAGE(STATUS "SASL_LIBRARY ${SASL_LIBRARY}")
ENDIF()
ENDMACRO()

IF (NOT WITH_SASL)
SET(WITH_SASL "system" CACHE STRING "By default use system sasl library")
ENDIF()

MACRO (MYSQL_CHECK_SASL)
IF (NOT WITH_SASL OR WITH_SASL STREQUAL "system")
FIND_SYSTEM_SASL()
IF (NOT SYSTEM_SASL_FOUND)
MESSAGE(STATUS "Cannot find system sasl libraries.")
SET(SASL_LIBRARY "")
ENDIF()
ELSE()
FIND_LIBRARY(SASL_LIBRARY
NAMES "sasl2" "sasl" "libsasl"
PATHS ${WITH_SASL} ${WITH_SASL}/lib
NO_DEFAULT_PATH
NO_CMAKE_ENVIRONMENT_PATH
NO_SYSTEM_ENVIRONMENT_PATH)
IF (NOT SASL_LIBRARY)
MESSAGE(STATUS "Cannot find sasl libraries in ${WITH_SASL}.")
SET(SASL_LIBRARY "")
ELSE()
MESSAGE(STATUS "SASL_LIBRARY ${SASL_LIBRARY}")
ENDIF()
ENDIF()
ENDMACRO()
35 changes: 26 additions & 9 deletions cmake/tags.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -15,12 +15,29 @@

# Generate tag files
IF(UNIX)
ADD_CUSTOM_TARGET (tags
COMMAND support-files/build-tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
ADD_CUSTOM_TARGET (ctags
COMMAND ctags -R -f CTAGS
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
FIND_PROGRAM(CTAGS_EXECUTABLE ctags)
IF(NOT CTAGS_EXECUTABLE)
RETURN()
ENDIF()
EXEC_PROGRAM(${CTAGS_EXECUTABLE} ARGS --version OUTPUT_VARIABLE CTAGS_VERSION)

IF(CTAGS_VERSION MATCHES "Exuberant")
ADD_CUSTOM_TARGET(tags
COMMAND support-files/build-tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
ADD_CUSTOM_TARGET(ctags
COMMAND support-files/build-tags ctags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
ELSE()
ADD_CUSTOM_TARGET (tags
COMMAND exit 1
COMMENT "Please install Exuberant Ctags"
)
ADD_CUSTOM_TARGET (ctags
COMMAND exit 1
COMMENT "Please install Exuberant Ctags"
)
ENDIF()
ENDIF()
6 changes: 1 addition & 5 deletions cmake/zlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

MACRO (MYSQL_USE_BUNDLED_ZLIB)
SET(BUILD_BUNDLED_ZLIB 1)
SET(ZLIB_LIBRARY zlib CACHE INTERNAL "Bundled zlib library")
SET(ZLIB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/zlib CACHE STRING "Will not be redefined by FindZLIB")
SET(ZLIB_FOUND TRUE)
SET(WITH_ZLIB "bundled" CACHE STRING "Use bundled zlib")
ADD_SUBDIRECTORY(zlib)
GET_TARGET_PROPERTY(src zlib SOURCES)
FOREACH(file ${src})
SET(ZLIB_SOURCES ${ZLIB_SOURCES} ${CMAKE_SOURCE_DIR}/zlib/${file})
ENDFOREACH()
ENDMACRO()

# MYSQL_CHECK_ZLIB_WITH_COMPRESS
Expand Down
3 changes: 1 addition & 2 deletions extra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -15,7 +15,6 @@

INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/include
${ZLIB_INCLUDE_DIR}
${LZ4_INCLUDE_DIR}
# Following is for perror, in case NDB is compiled in.
${CMAKE_SOURCE_DIR}/storage/ndb/include
Expand Down
3 changes: 1 addition & 2 deletions extra/protobuf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -71,7 +71,6 @@ ENDIF()

INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/protobuf-2.6.1/src
${ZLIB_INCLUDE_DIR}
)

SET(PROTO_SRC_DIR
Expand Down
9 changes: 3 additions & 6 deletions include/mysql/group_replication_priv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -37,12 +37,9 @@


/**
Server side initializations and cleanup.
Server side initializations.
*/
int group_replication_init(const char* plugin_name);
int group_replication_cleanup();
int group_replication_start();
int group_replication_stop();
int group_replication_init();


/**
Expand Down
8 changes: 2 additions & 6 deletions libbinlogevents/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -18,11 +18,7 @@ INCLUDE(configure.cmake)

INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/libbinlogevents/include
${CMAKE_SOURCE_DIR}/libbinlogevents/export
# ZLIB_INCLUDE_DIR points to ${CMAKE_SOURCE_DIR}/zlib,
# when compiled with MySQL server version (< 5.7).
# It is NULL otherwise.
${ZLIB_INCLUDE_DIR})
${CMAKE_SOURCE_DIR}/libbinlogevents/export)

CONFIGURE_FILE(binlog_config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/include/binlog_config.h)
Expand Down
11 changes: 2 additions & 9 deletions libbinlogstandalone/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -27,18 +27,11 @@ ADD_DEFINITIONS(-DSTANDALONE_BINLOG)
# INCLUDE_DIRECTORIES(${GTEST_INCLUDE_DIRS})
#ENDIF()

FIND_PACKAGE(ZLIB REQUIRED)


INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/libbinlogevents/include
${CMAKE_CURRENT_BINARY_DIR}/../libbinlogevents/include
${CMAKE_SOURCE_DIR}/libbinlogevents/export
${CMAKE_CURRENT_BINARY_DIR}/libbinlogevents/export
# ZLIB_INCLUDE_DIR points to ${CMAKE_SOURCE_DIR}/zlib,
# when compiled with MySQL server version (< 5.7).
# It is NULL otherwise.
${ZLIB_INCLUDE_DIR})
${CMAKE_CURRENT_BINARY_DIR}/libbinlogevents/export)

ADD_SUBDIRECTORY(src)

Expand Down
Loading