Skip to content

Commit 9374772

Browse files
committed
Merge 10.11 into 11.0
2 parents ac774a2 + 9d20853 commit 9374772

File tree

160 files changed

+2009
-557
lines changed

Some content is hidden

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

160 files changed

+2009
-557
lines changed

cmake/os/WindowsCache.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ SET(HAVE_TERMCAP_H CACHE INTERNAL "")
242242
SET(HAVE_TERMIOS_H CACHE INTERNAL "")
243243
SET(HAVE_TERMIO_H CACHE INTERNAL "")
244244
SET(HAVE_TERM_H CACHE INTERNAL "")
245-
SET(HAVE_THR_SETCONCURRENCY CACHE INTERNAL "")
246245
SET(HAVE_THR_YIELD CACHE INTERNAL "")
247246
SET(HAVE_TIME 1 CACHE INTERNAL "")
248247
SET(HAVE_TIMES CACHE INTERNAL "")

config.h.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@
232232
#cmakedefine HAVE_STRTOUL 1
233233
#cmakedefine HAVE_STRTOULL 1
234234
#cmakedefine HAVE_TELL 1
235-
#cmakedefine HAVE_THR_SETCONCURRENCY 1
236235
#cmakedefine HAVE_THR_YIELD 1
237236
#cmakedefine HAVE_TIME 1
238237
#cmakedefine HAVE_TIMES 1

configure.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ CHECK_FUNCTION_EXISTS (strtoul HAVE_STRTOUL)
418418
CHECK_FUNCTION_EXISTS (strtoull HAVE_STRTOULL)
419419
CHECK_FUNCTION_EXISTS (strcasecmp HAVE_STRCASECMP)
420420
CHECK_FUNCTION_EXISTS (tell HAVE_TELL)
421-
CHECK_FUNCTION_EXISTS (thr_setconcurrency HAVE_THR_SETCONCURRENCY)
422421
CHECK_FUNCTION_EXISTS (thr_yield HAVE_THR_YIELD)
423422
CHECK_FUNCTION_EXISTS (vasprintf HAVE_VASPRINTF)
424423
CHECK_FUNCTION_EXISTS (vsnprintf HAVE_VSNPRINTF)

debian/control

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Build-Depends: bison,
3030
liblz4-dev,
3131
liblzma-dev,
3232
liblzo2-dev,
33-
libncurses5-dev (>= 5.0-6~),
34-
libncurses5-dev:native (>= 5.0-6~),
33+
libncurses-dev,
3534
libnuma-dev [linux-any],
3635
libpam0g-dev,
3736
libpcre2-dev,

include/my_pthread.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ int pthread_cancel(pthread_t thread);
147147
#ifndef _REENTRANT
148148
#define _REENTRANT
149149
#endif
150-
#ifdef HAVE_THR_SETCONCURRENCY
151-
#include <thread.h> /* Probably solaris */
152-
#endif
153150
#ifdef HAVE_SCHED_H
154151
#include <sched.h>
155152
#endif
@@ -618,9 +615,6 @@ extern int my_rw_trywrlock(my_rw_lock_t *);
618615

619616
#define GETHOSTBYADDR_BUFF_SIZE 2048
620617

621-
#ifndef HAVE_THR_SETCONCURRENCY
622-
#define thr_setconcurrency(A) pthread_dummy(0)
623-
#endif
624618
#if !defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE) && ! defined(pthread_attr_setstacksize)
625619
#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
626620
#endif

include/mysql/plugin.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,13 @@ struct st_mysql_plugin
531531
const char *author; /* plugin author (for I_S.PLUGINS) */
532532
const char *descr; /* general descriptive text (for I_S.PLUGINS) */
533533
int license; /* the plugin license (PLUGIN_LICENSE_XXX) */
534-
int (*init)(void *); /* the function to invoke when plugin is loaded */
534+
/*
535+
The function to invoke when plugin is loaded. Plugin
536+
initialisation done here should defer any ALTER TABLE queries to
537+
after the ddl recovery is done, in the signal_ddl_recovery_done()
538+
callback called by ha_signal_ddl_recovery_done().
539+
*/
540+
int (*init)(void *);
535541
int (*deinit)(void *);/* the function to invoke when plugin is unloaded */
536542
unsigned int version; /* plugin version (for I_S.PLUGINS) */
537543
struct st_mysql_show_var *status_vars;
@@ -555,7 +561,13 @@ struct st_maria_plugin
555561
const char *author; /* plugin author (for SHOW PLUGINS) */
556562
const char *descr; /* general descriptive text (for SHOW PLUGINS ) */
557563
int license; /* the plugin license (PLUGIN_LICENSE_XXX) */
558-
int (*init)(void *); /* the function to invoke when plugin is loaded */
564+
/*
565+
The function to invoke when plugin is loaded. Plugin
566+
initialisation done here should defer any ALTER TABLE queries to
567+
after the ddl recovery is done, in the signal_ddl_recovery_done()
568+
callback called by ha_signal_ddl_recovery_done().
569+
*/
570+
int (*init)(void *);
559571
int (*deinit)(void *);/* the function to invoke when plugin is unloaded */
560572
unsigned int version; /* plugin version (for SHOW PLUGINS) */
561573
struct st_mysql_show_var *status_vars;

libmysqld/lib_sql.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,6 @@ int init_embedded_server(int argc, char **argv, char **groups)
634634
udf_init();
635635
#endif
636636

637-
(void) thr_setconcurrency(concurrency); // 10 by default
638-
639637
if (flush_time && flush_time != ~(ulong) 0L)
640638
start_handle_manager();
641639

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--source include/have_compress.inc
22

3-
# Test that the system is using the default/standard bzip library.
3+
# Test that the system is using the default/standard zlib library.
44
# If not, we have to skip the test as the compression lengths displayed
55
# in the test will not match the results from used compression library.
66

77
if (`select length(COMPRESS(space(5000))) != 33`) {
8-
skip Test skipped as standard bzip is needed;
8+
skip Test skipped as standard zlib is needed;
99
}

mysql-test/lib/mtr_cases.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,12 @@ sub collect_one_test_case {
892892
}
893893
my @no_combs = grep { $test_combs{$_} == 1 } keys %test_combs;
894894
if (@no_combs) {
895+
if ($::opt_skip_not_found) {
896+
push @{$tinfo->{combinations}}, @no_combs;
897+
$tinfo->{'skip'}= 1;
898+
$tinfo->{'comment'}= "combination not found";
899+
return $tinfo;
900+
}
895901
mtr_error("Could not run $name with '".(
896902
join(',', sort @no_combs))."' combination(s)");
897903
}

mysql-test/main/cast.test

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,14 +768,11 @@ INSERT INTO t1 VALUES (-1.0);
768768
SELECT * FROM t1;
769769
DROP TABLE t1;
770770

771-
#enable after MDEV-32645 is fixed
772-
--disable_view_protocol
773771
SELECT CAST(-1e0 AS UNSIGNED);
774772
CREATE TABLE t1 (a BIGINT UNSIGNED);
775773
INSERT INTO t1 VALUES (-1e0);
776774
SELECT * FROM t1;
777775
DROP TABLE t1;
778-
--enable_view_protocol
779776

780777
SELECT CAST(-1e308 AS UNSIGNED);
781778
CREATE TABLE t1 (a BIGINT UNSIGNED);

0 commit comments

Comments
 (0)