Skip to content

Commit 2ac8b07

Browse files
committed
Merge tag 'clone-5.7.30-build' into mysql-5.7-cluster-7.5
Change-Id: Ife0fb879352ed00f40d2862f337a4e3ab6804d57
2 parents df623bd + 8311325 commit 2ac8b07

File tree

403 files changed

+67834
-24063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+67834
-24063
lines changed

LICENSE

+53-75
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Introduction
1010
third-party software which may be included in this distribution of
1111
MySQL NDB Cluster 7.5.16 (and later).
1212

13-
Last updated: December 2019
13+
Last updated: March 2020
1414

1515
Licensing Information
1616

@@ -1909,12 +1909,12 @@ Redistribution and use in source and binary forms, with or without
19091909
modification, are permitted provided that the following conditions
19101910
are met:
19111911
1. Redistributions of source code must retain the above copyright
1912-
notice, this list of conditions and the following disclaimer.
1912+
notice, this list of conditions and the following disclaimer.
19131913
2. Redistributions in binary form must reproduce the above copyright
1914-
notice, this list of conditions and the following disclaimer in the
1915-
documentation and/or other materials provided with the distribution.
1914+
notice, this list of conditions and the following disclaimer in the
1915+
documentation and/or other materials provided with the distribution.
19161916
3. The name of the author may not be used to endorse or promote products
1917-
derived from this software without specific prior written permission.
1917+
derived from this software without specific prior written permission.
19181918

19191919
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19201920
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -1929,45 +1929,73 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19291929
==============================
19301930

19311931
Portions of Libevent are based on works by others, also made available by
1932-
them under the three-clause BSD license above. The copyright notices are
1933-
available in the corresponding source files; the license is as above. Here's
1932+
them under the three-clause BSD license above. The copyright notices are
1933+
available in the corresponding source files; the license is as above. Here's
19341934
a list:
19351935

19361936
log.c:
1937-
Copyright (c) 2000 Dug Song <dugsong@monkey.org>
1938-
Copyright (c) 1993 The Regents of the University of California.
1937+
Copyright (c) 2000 Dug Song <dugsong@monkey.org>
1938+
Copyright (c) 1993 The Regents of the University of California.
19391939

19401940
strlcpy.c:
1941-
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
1941+
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
19421942

19431943
win32select.c:
1944-
Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
1944+
Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
1945+
1946+
evport.c:
1947+
Copyright (c) 2007 Sun Microsystems
19451948

19461949
ht-internal.h:
1947-
Copyright (c) 2002 Christopher Clark
1950+
Copyright (c) 2002 Christopher Clark
19481951

19491952
minheap-internal.h:
1950-
Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
1953+
Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
19511954

19521955
==============================
19531956

19541957
The arc4module is available under the following, sometimes called the
19551958
"OpenBSD" license:
19561959

1957-
Copyright (c) 1996, David Mazieres <dm@uun.org>
1958-
Copyright (c) 2008, Damien Miller <djm@openbsd.org>
1960+
Copyright (c) 1996, David Mazieres <dm@uun.org>
1961+
Copyright (c) 2008, Damien Miller <djm@openbsd.org>
19591962

1960-
Permission to use, copy, modify, and distribute this software for any
1961-
purpose with or without fee is hereby granted, provided that the above
1962-
copyright notice and this permission notice appear in all copies.
1963+
Permission to use, copy, modify, and distribute this software for any
1964+
purpose with or without fee is hereby granted, provided that the above
1965+
copyright notice and this permission notice appear in all copies.
19631966

1964-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1965-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1966-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1967-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1968-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1969-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1970-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1967+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1968+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1969+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1970+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1971+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1972+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1973+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1974+
1975+
==============================
1976+
1977+
The Windows timer code is based on code from libutp, which is
1978+
distributed under this license, sometimes called the "MIT" license.
1979+
1980+
Copyright (c) 2010 BitTorrent, Inc.
1981+
1982+
Permission is hereby granted, free of charge, to any person obtaining a copy
1983+
of this software and associated documentation files (the "Software"), to deal
1984+
in the Software without restriction, including without limitation the rights
1985+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1986+
copies of the Software, and to permit persons to whom the Software is
1987+
furnished to do so, subject to the following conditions:
1988+
1989+
The above copyright notice and this permission notice shall be included in
1990+
all copies or substantial portions of the Software.
1991+
1992+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1993+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1994+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1995+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1996+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1997+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1998+
THE SOFTWARE.
19711999

19722000
libgcc & libstdc++ Libraries
19732001

@@ -4511,56 +4539,6 @@ code is licensed under the LGPLv2.1 license.
45114539
This component is licensed under GNU Lesser General Public License
45124540
Version 2.1, February 1999.
45134541

4514-
OpenLDAP 2.8
4515-
4516-
The following software may be included in this product:
4517-
4518-
OpenLDAP 2.8
4519-
The OpenLDAP Public License
4520-
Version 2.8, 17 August 2003
4521-
4522-
Redistribution and use of this software and associated documentation
4523-
("Software"), with or without modification, are permitted provided
4524-
that the following conditions are met:
4525-
4526-
1. Redistributions in source form must retain copyright statements
4527-
and notices,
4528-
4529-
2. Redistributions in binary form must reproduce applicable copyright
4530-
statements and notices, this list of conditions, and the following
4531-
disclaimer in the documentation and/or other materials provided
4532-
with the distribution, and
4533-
4534-
3. Redistributions must contain a verbatim copy of this document.
4535-
4536-
The OpenLDAP Foundation may revise this license from time to time. Each
4537-
revision is distinguished by a version number. You may use this Software
4538-
under terms of this license revision or under the terms of any subsequent
4539-
revision of the license.
4540-
4541-
THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS CONTRIBUTORS
4542-
``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
4543-
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4544-
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENLDAP FOUNDATION, ITS
4545-
CONTRIBUTORS, OR THE AUTHOR(S) OR OWNER(S) OF THE SOFTWARE BE LIABLE FOR ANY
4546-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
4547-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4548-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
4549-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4550-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
4551-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4552-
4553-
The names of the authors and copyright holders must not be used in
4554-
advertising or otherwise to promote the sale, use or other dealing in this
4555-
Software without specific, written prior permission. Title to copyright in
4556-
this Software shall at all times remain with copyright holders.
4557-
4558-
OpenLDAP is a registered trademark of the OpenLDAP Foundation.
4559-
4560-
Copyright 1999-2003 The OpenLDAP Foundation, Redwood City,
4561-
California, USA. All Rights Reserved. Permission to copy and
4562-
distribute verbatim copies of this document is granted.
4563-
45644542
OpenPAM
45654543

45664544
The following software may be included in this product:

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
MYSQL_VERSION_MAJOR=5
22
MYSQL_VERSION_MINOR=7
3-
MYSQL_VERSION_PATCH=29
3+
MYSQL_VERSION_PATCH=30
44
MYSQL_VERSION_EXTRA=-ndb-7.5.18

client/dump/program.cc

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -275,7 +275,13 @@ Program::Program()
275275
const char *load_default_groups[]=
276276
{
277277
"client", /* Read settings how to connect to server. */
278-
"mysql_dump", /* Read special settings for mysql_dump. */
278+
/*
279+
Read special settings for mysql_dump.
280+
This section will be deprecated.
281+
*/
282+
"mysql_dump",
283+
/* Read config options from mysqlpump section. */
284+
"mysqlpump",
279285
0
280286
};
281287

client/mysql.cc

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -2825,12 +2825,12 @@ C_MODE_END
28252825

28262826
#if defined(USE_NEW_EDITLINE_INTERFACE)
28272827
static int fake_magic_space(int, int);
2828-
extern "C" char *no_completion(const char*,int)
2828+
char *no_completion(const char *, int)
28292829
#elif defined(USE_LIBEDIT_INTERFACE)
2830-
static int fake_magic_space(const char *, int);
2831-
extern "C" int no_completion(const char*,int)
2830+
static int fake_magic_space(int, int);
2831+
char *no_completion(const char *, int)
28322832
#else
2833-
extern "C" char *no_completion()
2833+
char *no_completion()
28342834
#endif
28352835
{
28362836
return 0; /* No filename completion */
@@ -2855,7 +2855,7 @@ static int not_in_history(const char *line)
28552855
#if defined(USE_NEW_EDITLINE_INTERFACE)
28562856
static int fake_magic_space(int, int)
28572857
#else
2858-
static int fake_magic_space(const char *, int)
2858+
static int fake_magic_space(int, int)
28592859
#endif
28602860
{
28612861
rl_insert(1, ' ');
@@ -2870,15 +2870,15 @@ static void initialize_readline (char *name)
28702870

28712871
/* Tell the completer that we want a crack first. */
28722872
#if defined(USE_NEW_EDITLINE_INTERFACE)
2873-
rl_attempted_completion_function= (rl_completion_func_t*)&new_mysql_completion;
2874-
rl_completion_entry_function= (rl_compentry_func_t*)&no_completion;
2873+
rl_attempted_completion_function= &new_mysql_completion;
2874+
rl_completion_entry_function= &no_completion;
28752875

2876-
rl_add_defun("magic-space", (rl_command_func_t *)&fake_magic_space, -1);
2876+
rl_add_defun("magic-space", &fake_magic_space, -1);
28772877
#elif defined(USE_LIBEDIT_INTERFACE)
28782878
setlocale(LC_ALL,""); /* so as libedit use isprint */
2879-
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
2879+
rl_attempted_completion_function= &new_mysql_completion;
28802880
rl_completion_entry_function= &no_completion;
2881-
rl_add_defun("magic-space", (Function*)&fake_magic_space, -1);
2881+
rl_add_defun("magic-space", &fake_magic_space, -1);
28822882
#else
28832883
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
28842884
rl_completion_entry_function= &no_completion;
@@ -2900,7 +2900,7 @@ static char **new_mysql_completion(const char *text,
29002900
#if defined(USE_NEW_EDITLINE_INTERFACE)
29012901
return rl_completion_matches(text, new_command_generator);
29022902
#else
2903-
return completion_matches((char *)text, (CPFunction *)new_command_generator);
2903+
return completion_matches(const_cast<char*>(text), new_command_generator);
29042904
#endif
29052905
else
29062906
return (char**) 0;

cmake/os/FreeBSD.cmake

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2010, 2020, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License, version 2.0,
@@ -28,8 +28,10 @@ INCLUDE(CheckCSourceRuns)
2828
SET(FREEBSD 1)
2929

3030
# On FreeBSD some includes, e.g. sasl/sasl.h, is in /usr/local/include
31-
INCLUDE_DIRECTORIES(SYSTEM /usr/local/include)
3231
LIST(APPEND CMAKE_REQUIRED_INCLUDES "/usr/local/include")
32+
# Do not INCLUDE_DIRECTORIES here, we need to do that *after* configuring boost,
33+
# in order to search include/boost_1_59_0/patches
34+
# INCLUDE_DIRECTORIES(SYSTEM /usr/local/include)
3335

3436
# We require at least Clang 3.3.
3537
IF(NOT FORCE_UNSUPPORTED_COMPILER)

cmake/readline.cmake

+14-25
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License, version 2.0,
@@ -63,10 +63,10 @@ MACRO (FIND_CURSES)
6363
IF(NOT CURSES_FOUND)
6464
SET(ERRORMSG "Curses library not found. Please install appropriate package,
6565
remove CMakeCache.txt and rerun cmake.")
66-
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
67-
SET(ERRORMSG ${ERRORMSG}
68-
"On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates "
69-
"it is ncurses-devel.")
66+
IF(LINUX)
67+
SET(ERRORMSG ${ERRORMSG}
68+
"On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates "
69+
"it is ncurses-devel.")
7070
ENDIF()
7171
MESSAGE(FATAL_ERROR ${ERRORMSG})
7272
ENDIF()
@@ -76,24 +76,8 @@ MACRO (FIND_CURSES)
7676
ELSEIF(CURSES_HAVE_NCURSES_H)
7777
SET(HAVE_NCURSES_H 1 CACHE INTERNAL "")
7878
ENDIF()
79-
IF(CMAKE_SYSTEM_NAME MATCHES "HP")
80-
# CMake uses full path to library /lib/libcurses.sl
81-
# On Itanium, it results into architecture mismatch+
82-
# the library is for PA-RISC
83-
SET(CURSES_LIBRARY "curses" CACHE INTERNAL "" FORCE)
84-
SET(CURSES_CURSES_LIBRARY "curses" CACHE INTERNAL "" FORCE)
85-
ENDIF()
86-
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
87-
# CMake generates /lib/64/libcurses.so -R/lib/64
88-
# The result is we cannot find
89-
# /opt/studio12u2/lib/stlport4/v9/libstlport.so.1
90-
# at runtime
91-
SET(CURSES_LIBRARY "curses" CACHE INTERNAL "" FORCE)
92-
SET(CURSES_CURSES_LIBRARY "curses" CACHE INTERNAL "" FORCE)
93-
MESSAGE(STATUS "CURSES_LIBRARY ${CURSES_LIBRARY}")
94-
ENDIF()
9579

96-
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
80+
IF(LINUX)
9781
# -Wl,--as-needed breaks linking with -lcurses, e.g on Fedora
9882
# Lower-level libcurses calls are exposed by libtinfo
9983
CHECK_LIBRARY_EXISTS(${CURSES_LIBRARY} tputs "" HAVE_TPUTS_IN_CURSES)
@@ -107,12 +91,14 @@ MACRO (FIND_CURSES)
10791
ENDMACRO()
10892

10993
MACRO (MYSQL_USE_BUNDLED_EDITLINE)
94+
SET(WITH_EDITLINE "bundled" CACHE STRING "By default use bundled editline")
11095
SET(USE_LIBEDIT_INTERFACE 1)
11196
SET(HAVE_HIST_ENTRY 1)
112-
SET(EDITLINE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/cmd-line-utils/libedit/editline)
97+
SET(EDITLINE_INCLUDE_DIR
98+
${CMAKE_SOURCE_DIR}/cmd-line-utils/libedit/libedit-20190324-3.1/src/editline)
11399
SET(EDITLINE_LIBRARY edit)
114100
FIND_CURSES()
115-
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/cmd-line-utils/libedit)
101+
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/cmd-line-utils/libedit/libedit-20190324-3.1/src)
116102
ENDMACRO()
117103

118104
MACRO (FIND_SYSTEM_EDITLINE)
@@ -142,8 +128,10 @@ MACRO (FIND_SYSTEM_EDITLINE)
142128

143129
INCLUDE(CheckCXXSourceCompiles)
144130
IF(EDITLINE_LIBRARY AND EDITLINE_INCLUDE_DIR)
131+
CMAKE_PUSH_CHECK_STATE()
132+
145133
SET(CMAKE_REQUIRED_INCLUDES ${EDITLINE_INCLUDE_DIR})
146-
SET(CMAKE_REQUIRED_LIBRARIES ${EDITLINE_LIBRARY})
134+
LIST(APPEND CMAKE_REQUIRED_LIBRARIES ${EDITLINE_LIBRARY})
147135
CHECK_CXX_SOURCE_COMPILES("
148136
#include <stdio.h>
149137
#include <readline.h>
@@ -188,6 +176,7 @@ MACRO (FIND_SYSTEM_EDITLINE)
188176
SET(USE_NEW_EDITLINE_INTERFACE 1)
189177
ENDIF()
190178
ENDIF()
179+
CMAKE_POP_CHECK_STATE()
191180
ENDIF()
192181
ENDMACRO()
193182

0 commit comments

Comments
 (0)