Skip to content

Commit 2250e9e

Browse files
committed
Merge 10.2 into 10.2-mdev9864.
2 parents cb1e442 + 4ca7b22 commit 2250e9e

File tree

1,739 files changed

+87588
-36970
lines changed

Some content is hidden

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

1,739 files changed

+87588
-36970
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.cpp text
1010
*.h text
1111
*.test text
12+
*.java text
1213

1314
# These files should be checked out as is
1415
*.result -text -whitespace
@@ -23,9 +24,11 @@ pcre/testdata/greppatN4 -text
2324
*.frm binary
2425
*.MYD binary
2526
*.MYI binary
27+
*.class binary
2628

2729
*.c diff=cpp
2830
*.h diff=cpp
2931
*.cc diff=cpp
3032
*.ic diff=cpp
3133
*.cpp diff=cpp
34+
*.java diff=cpp

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ storage/mroonga/mysql-test/mroonga/storage/r/variable_version.result
244244
*.exp
245245
*.dep
246246
*.idb
247+
*.res
248+
*.tlog
247249

248250
# Precompiled Headers
249251
*.gch

.travis.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# vim ft=yaml
2+
# travis-ci.org definition
3+
4+
# non-container builds don't have enough RAM to reliably compile
5+
sudo: required
6+
dist: trusty
7+
8+
language: cpp
9+
compiler:
10+
- gcc
11+
# - clang # See commit f38808 if you want to re-enable clang builds
12+
cache:
13+
apt:
14+
ccache:
15+
16+
# Timing on build an test needs to be < 50 minutes. The compile is ~4-5minutes
17+
# so here we group the tests such that this happens.
18+
19+
addons:
20+
apt:
21+
packages: # make sure these match debian/control contents
22+
- bison
23+
- chrpath
24+
- cmake
25+
- debhelper
26+
- dh-apparmor
27+
- dpatch
28+
- libaio-dev
29+
- libboost-dev
30+
- libjudy-dev
31+
- libncurses5-dev
32+
- libpam0g-dev
33+
- libreadline-gplv2-dev
34+
- libssl-dev
35+
- lsb-release
36+
- perl
37+
- po-debconf
38+
- psmisc
39+
- zlib1g-dev
40+
- libcrack2-dev # no effect as the package is disallowed on Travis-CI
41+
- libjemalloc-dev
42+
- devscripts # implicit for any build on Ubuntu
43+
44+
script:
45+
- ${CC} --version ; ${CXX} --version
46+
- cd "${TRAVIS_BUILD_DIR}"
47+
- env DEB_BUILD_OPTIONS="parallel=4" debian/autobake-deb.sh;
48+
49+
notifications:
50+
irc:
51+
channels:
52+
- "chat.freenode.net#maria"
53+
on_success: never # [always|never|change]
54+
on_failure: never
55+
template:
56+
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ INCLUDE(plugin)
153153
INCLUDE(install_macros)
154154
INCLUDE(systemd)
155155
INCLUDE(mysql_add_executable)
156+
INCLUDE(crc32-vpmsum)
156157

157158
# Handle options
158159
OPTION(DISABLE_SHARED

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
MYSQL_VERSION_MAJOR=10
22
MYSQL_VERSION_MINOR=2
3-
MYSQL_VERSION_PATCH=0
3+
MYSQL_VERSION_PATCH=2

client/client_priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright (c) 2001, 2012, Oracle and/or its affiliates.
3+
Copyright (c) 2009, 2016, MariaDB
34
45
This program is free software; you can redistribute it and/or modify
56
it under the terms of the GNU General Public License as published by

client/mysql.cc

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
3-
Copyright (c) 2009, 2013, Monty Program Ab.
4-
Copyright (c) 2013, 2014, SkySQL Ab
3+
Copyright (c) 2009, 2016, MariaDB
54
65
This program is free software; you can redistribute it and/or modify
76
it under the terms of the GNU General Public License as published by
@@ -96,9 +95,16 @@ extern "C" {
9695
#endif
9796
}
9897

99-
#if !defined(HAVE_VIDATTR)
100-
#undef vidattr
101-
#define vidattr(A) {} // Can't get this to work
98+
#ifdef HAVE_VIDATTR
99+
static int have_curses= 0;
100+
static void my_vidattr(chtype attrs)
101+
{
102+
if (have_curses)
103+
vidattr(attrs);
104+
}
105+
#else
106+
#undef HAVE_SETUPTERM
107+
#define my_vidattr(A) {} // Can't get this to work
102108
#endif
103109

104110
#ifdef FN_NO_CASE_SENSE
@@ -4734,9 +4740,9 @@ com_status(String *buffer __attribute__((unused)),
47344740

47354741
if (skip_updates)
47364742
{
4737-
vidattr(A_BOLD);
4743+
my_vidattr(A_BOLD);
47384744
tee_fprintf(stdout, "\nAll updates ignored to this database\n");
4739-
vidattr(A_NORMAL);
4745+
my_vidattr(A_NORMAL);
47404746
}
47414747
#ifdef USE_POPEN
47424748
tee_fprintf(stdout, "Current pager:\t\t%s\n", pager);
@@ -4804,9 +4810,9 @@ com_status(String *buffer __attribute__((unused)),
48044810
}
48054811
if (safe_updates)
48064812
{
4807-
vidattr(A_BOLD);
4813+
my_vidattr(A_BOLD);
48084814
tee_fprintf(stdout, "\nNote that you are running in safe_update_mode:\n");
4809-
vidattr(A_NORMAL);
4815+
my_vidattr(A_NORMAL);
48104816
tee_fprintf(stdout, "\
48114817
UPDATEs and DELETEs that don't use a key in the WHERE clause are not allowed.\n\
48124818
(One can force an UPDATE/DELETE by adding LIMIT # at the end of the command.)\n\
@@ -4899,10 +4905,11 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
48994905
{
49004906
if (!inited)
49014907
{
4902-
inited=1;
49034908
#ifdef HAVE_SETUPTERM
4904-
(void) setupterm((char *)0, 1, (int *) 0);
4909+
int errret;
4910+
have_curses= setupterm((char *)0, 1, &errret) != ERR;
49054911
#endif
4912+
inited=1;
49064913
}
49074914
if (info_type == INFO_ERROR)
49084915
{
@@ -4914,7 +4921,7 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
49144921
putchar('\a'); /* This should make a bell */
49154922
#endif
49164923
}
4917-
vidattr(A_STANDOUT);
4924+
my_vidattr(A_STANDOUT);
49184925
if (error)
49194926
{
49204927
if (sqlstate)
@@ -4933,9 +4940,9 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
49334940
tee_fputs(": ", file);
49344941
}
49354942
else
4936-
vidattr(A_BOLD);
4943+
my_vidattr(A_BOLD);
49374944
(void) tee_puts(str, file);
4938-
vidattr(A_NORMAL);
4945+
my_vidattr(A_NORMAL);
49394946
}
49404947
if (unbuffered)
49414948
fflush(file);

client/mysql_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2006, 2013, Oracle and/or its affiliates.
3-
Copyright (c) 2010, 2015, MariaDB
3+
Copyright (c) 2010, 2016, MariaDB
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by

client/mysqladmin.cc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
3-
Copyright (c) 2010, 2015, MariaDB
3+
Copyright (c) 2010, 2016, MariaDB
44
55
This program is free software; you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -235,8 +235,6 @@ my_bool
235235
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
236236
char *argument)
237237
{
238-
int error = 0;
239-
240238
switch(optid) {
241239
case 'c':
242240
opt_count_iterations= 1;
@@ -284,8 +282,8 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
284282
break;
285283
case '?':
286284
case 'I': /* Info */
287-
error++;
288-
break;
285+
usage();
286+
exit(0);
289287
case OPT_CHARSETS_DIR:
290288
#if MYSQL_VERSION_ID > 32300
291289
charsets_dir = argument;
@@ -296,11 +294,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
296294
opt->name);
297295
break;
298296
}
299-
if (error)
300-
{
301-
usage();
302-
exit(1);
303-
}
304297
return 0;
305298
}
306299

client/mysqlbinlog.cc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#define TABLE TABLE_CLIENT
3535
#include "client_priv.h"
3636
#include <my_time.h>
37+
#include <sslopt-vars.h>
3738
/* That one is necessary for defines of OPTION_NO_FOREIGN_KEY_CHECKS etc */
3839
#include "sql_priv.h"
3940
#include "log_event.h"
@@ -1403,6 +1404,7 @@ static struct my_option my_options[] =
14031404
{"socket", 'S', "The socket file to use for connection.",
14041405
&sock, &sock, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0,
14051406
0, 0},
1407+
#include <sslopt-longopts.h>
14061408
{"start-datetime", OPT_START_DATETIME,
14071409
"Start reading the binlog at first event having a datetime equal or "
14081410
"posterior to the argument; the argument must be a date and time "
@@ -1621,6 +1623,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
16211623
DBUG_PUSH(argument ? argument : default_dbug_option);
16221624
break;
16231625
#endif
1626+
#include <sslopt-case.h>
16241627
case 'd':
16251628
one_database = 1;
16261629
break;
@@ -1773,6 +1776,18 @@ static Exit_status safe_connect()
17731776
return ERROR_STOP;
17741777
}
17751778

1779+
#ifdef HAVE_OPENSSL
1780+
if (opt_use_ssl)
1781+
{
1782+
mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca,
1783+
opt_ssl_capath, opt_ssl_cipher);
1784+
mysql_options(mysql, MYSQL_OPT_SSL_CRL, opt_ssl_crl);
1785+
mysql_options(mysql, MYSQL_OPT_SSL_CRLPATH, opt_ssl_crlpath);
1786+
}
1787+
mysql_options(mysql,MYSQL_OPT_SSL_VERIFY_SERVER_CERT,
1788+
(char*)&opt_ssl_verify_server_cert);
1789+
#endif /*HAVE_OPENSSL*/
1790+
17761791
if (opt_plugindir && *opt_plugindir)
17771792
mysql_options(mysql, MYSQL_PLUGIN_DIR, opt_plugindir);
17781793

0 commit comments

Comments
 (0)