Skip to content

Commit 272828a

Browse files
committed
Merge branch '10.5' into 10.6
2 parents d15c839 + 7a4afad commit 272828a

File tree

1,195 files changed

+48764
-27709
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,195 files changed

+48764
-27709
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
.*.swp
99
*.ninja
1010
.ninja_*
11+
*.mri
12+
*.mri.tpl
1113
.gdb_history
1214
.vs/
1315
errmsg.sys
@@ -88,7 +90,7 @@ mysql-test/lib/My/SafeProcess/my_safe_process
8890
mysql-test/lib/My/SafeProcess/wsrep_check_version
8991
mysql-test/mtr
9092
mysql-test/mysql-test-run
91-
mysql-test/var
93+
mysql-test/var*
9294
mysql-test-gcov.err
9395
mysql-test-gcov.msg
9496
mysys/test_hash

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
[submodule "storage/maria/libmarias3"]
1515
path = storage/maria/libmarias3
1616
url = https://github.com/mariadb-corporation/libmarias3.git
17+
[submodule "storage/columnstore/columnstore"]
18+
path = storage/columnstore/columnstore
19+
url = https://github.com/mariadb-corporation/mariadb-columnstore-engine.git

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)
2424
IF(POLICY CMP0022)
2525
CMAKE_POLICY(SET CMP0022 NEW)
2626
ENDIF()
27+
IF(POLICY CMP0048)
28+
CMAKE_POLICY(SET CMP0048 NEW)
29+
ENDIF()
2730
IF(POLICY CMP0054)
2831
CMAKE_POLICY(SET CMP0054 NEW)
2932
ENDIF()
@@ -170,7 +173,6 @@ INCLUDE(systemd)
170173
INCLUDE(mysql_add_executable)
171174
INCLUDE(symlinks)
172175
INCLUDE(compile_flags)
173-
INCLUDE(crc32)
174176
INCLUDE(pmem)
175177

176178
# Handle options
@@ -239,6 +241,9 @@ IF (WITH_MSAN)
239241
MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=memory -fsanitize-memory-track-origins -U_FORTIFY_SOURCE" DEBUG RELWITHDEBINFO)
240242
ENDIF()
241243

244+
# Be nice to profilers etc
245+
MY_CHECK_AND_SET_COMPILER_FLAG("-fno-omit-frame-pointer" RELWITHDEBINFO)
246+
242247
# enable security hardening features, like most distributions do
243248
# in our benchmarks that costs about ~1% of performance, depending on the load
244249
OPTION(SECURITY_HARDENED "Use security-enhancing compiler features (stack protector, relro, etc)" ON)
@@ -420,7 +425,7 @@ INCLUDE(mariadb_connector_c) # this does ADD_SUBDIRECTORY(libmariadb)
420425
INCLUDE(cpack_rpm)
421426
INCLUDE(cpack_deb)
422427

423-
SET(PYTHON_SHEBANG "/usr/bin/env python" CACHE STRING "python shebang")
428+
SET(PYTHON_SHEBANG "/usr/bin/env python3" CACHE STRING "python shebang")
424429
MARK_AS_ADVANCED(PYTHON_SHEBANG)
425430

426431
# Add storage engines and plugins.

client/mysql.cc

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ extern "C" {
9292
#include <conio.h>
9393
#else
9494
#include <readline.h>
95+
#if !defined(USE_LIBEDIT_INTERFACE)
96+
#include <history.h>
97+
#endif
9598
#define HAVE_READLINE
9699
#define USE_POPEN
97100
#endif
@@ -1043,22 +1046,6 @@ static const char *embedded_server_groups[]=
10431046
{ "server", "embedded", "mysql_SERVER", "mariadb_SERVER", 0 };
10441047

10451048
#ifdef HAVE_READLINE
1046-
/*
1047-
HIST_ENTRY is defined for libedit, but not for the real readline
1048-
Need to redefine it for real readline to find it
1049-
*/
1050-
#if !defined(HAVE_HIST_ENTRY)
1051-
typedef struct _hist_entry {
1052-
const char *line;
1053-
const char *data;
1054-
} HIST_ENTRY;
1055-
#endif
1056-
1057-
extern "C" int add_history(const char *command); /* From readline directory */
1058-
extern "C" int read_history(const char *command);
1059-
extern "C" int write_history(const char *command);
1060-
extern "C" HIST_ENTRY *history_get(int num);
1061-
extern "C" int history_length;
10621049
static int not_in_history(const char *line);
10631050
static void initialize_readline ();
10641051
static void fix_history(String *final_command);
@@ -1300,8 +1287,8 @@ sig_handler mysql_end(int sig)
13001287
{
13011288
#ifndef _WIN32
13021289
/*
1303-
Ingnoring SIGQUIT and SIGINT signals when cleanup process starts.
1304-
This will help in resolving the double free issues, which occures in case
1290+
Ignoring SIGQUIT and SIGINT signals when cleanup process starts.
1291+
This will help in resolving the double free issues, which occurs in case
13051292
the signal handler function is started in between the clean up function.
13061293
*/
13071294
signal(SIGQUIT, SIG_IGN);
@@ -4733,7 +4720,7 @@ sql_real_connect(char *host,char *database,char *user,char *password,
47334720
/*
47344721
CLIENT_PROGRESS_OBSOLETE is set only if we requested it in
47354722
mysql_real_connect() and the server also supports it
4736-
*/
4723+
*/
47374724
if (mysql.client_flag & CLIENT_PROGRESS_OBSOLETE)
47384725
mysql_options(&mysql, MYSQL_PROGRESS_CALLBACK, (void*) report_progress);
47394726
#else
@@ -4802,7 +4789,7 @@ com_status(String *buffer __attribute__((unused)),
48024789
tee_fprintf(stdout, "\nConnection id:\t\t%lu\n",mysql_thread_id(&mysql));
48034790
/*
48044791
Don't remove "limit 1",
4805-
it is protection againts SQL_SELECT_LIMIT=0
4792+
it is protection against SQL_SELECT_LIMIT=0
48064793
*/
48074794
if (!mysql_store_result_for_lazy(&result))
48084795
{
@@ -5151,7 +5138,7 @@ static const char *construct_prompt()
51515138
time_t lclock = time(NULL); // Get the date struct
51525139
struct tm *t = localtime(&lclock);
51535140

5154-
/* parse thru the settings for the prompt */
5141+
/* parse through the settings for the prompt */
51555142
for (char *c = current_prompt; *c ; c++)
51565143
{
51575144
if (*c != PROMPT_CHAR)

client/mysql_plugin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ static int find_plugin(char *tp_path)
10241024

10251025

10261026
/**
1027-
Build the boostrap file.
1027+
Build the bootstrap file.
10281028
10291029
Create a new file and populate it with SQL commands to ENABLE or DISABLE
10301030
the plugin via REPLACE and DELETE operations on the mysql.plugin table.
@@ -1153,7 +1153,7 @@ static int dump_bootstrap_file(char *bootstrap_file)
11531153
11541154
Create a command line sequence to launch mysqld in bootstrap mode. This
11551155
will allow mysqld to launch a minimal server instance to read and
1156-
execute SQL commands from a file piped in (the boostrap file). We use
1156+
execute SQL commands from a file piped in (the bootstrap file). We use
11571157
the --no-defaults option to skip reading values from the config file.
11581158
11591159
The bootstrap mode skips loading of plugins and many other subsystems.

client/mysqlbinlog.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ static bool shall_skip_database(const char *log_dbname)
753753
/**
754754
Print "use <db>" statement when current db is to be changed.
755755
756-
We have to control emiting USE statements according to rewrite-db options.
756+
We have to control emitting USE statements according to rewrite-db options.
757757
We have to do it here (see process_event() below) and to suppress
758758
producing USE statements by corresponding log event print-functions.
759759
*/
@@ -785,7 +785,7 @@ print_use_stmt(PRINT_EVENT_INFO* pinfo, const Query_log_event *ev)
785785
// In case of rewrite rule print USE statement for db_to
786786
my_fprintf(result_file, "use %`s%s\n", db_to, pinfo->delimiter);
787787

788-
// Copy the *original* db to pinfo to suppress emiting
788+
// Copy the *original* db to pinfo to suppress emitting
789789
// of USE stmts by log_event print-functions.
790790
memcpy(pinfo->db, db, db_len + 1);
791791
}

client/mysqldump.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static char * opt_mysql_unix_port=0;
147147
static int first_error=0;
148148
/*
149149
multi_source is 0 if old server or 2 if server that support multi source
150-
This is choosen this was as multi_source has 2 extra columns first in
150+
This is chosen this was as multi_source has 2 extra columns first in
151151
SHOW ALL SLAVES STATUS.
152152
*/
153153
static uint multi_source= 0;
@@ -2075,7 +2075,7 @@ static void print_xml_tag(FILE * xml_file, const char* sbeg,
20752075
<stag_atr="sval" xsi:nil="true"/>
20762076
NOTE
20772077
sval MUST be a NULL terminated string.
2078-
sval string will be qouted before output.
2078+
sval string will be quoted before output.
20792079
*/
20802080

20812081
static void print_xml_null_tag(FILE * xml_file, const char* sbeg,
@@ -2147,7 +2147,7 @@ static void print_xml_cdata(FILE *xml_file, const char *str, ulong len)
21472147
Print tag with many attribute to the xml_file. Format is:
21482148
\t\t<row_name Atr1="Val1" Atr2="Val2"... />
21492149
NOTE
2150-
All atributes and values will be quoted before output.
2150+
All attributes and values will be quoted before output.
21512151
*/
21522152

21532153
static void print_xml_row(FILE *xml_file, const char *row_name,
@@ -2632,7 +2632,7 @@ static uint dump_routines_for_db(char *db)
26322632
print_comment(sql_file, 1,
26332633
"-- does %s have permissions on mysql.proc?\n\n",
26342634
fix_for_comment(current_user));
2635-
maybe_die(EX_MYSQLERR,"%s has insufficent privileges to %s!",
2635+
maybe_die(EX_MYSQLERR,"%s has insufficient privileges to %s!",
26362636
current_user, query_buff);
26372637
}
26382638
else if (strlen(row[2]))
@@ -4187,7 +4187,7 @@ static void dump_table(char *table, char *db, const uchar *hash_key, size_t len)
41874187
}
41884188
}
41894189

4190-
/* XML - close table tag and supress regular output */
4190+
/* XML - close table tag and suppress regular output */
41914191
if (opt_xml)
41924192
fputs("\t</table_data>\n", md_result_file);
41934193
else if (extended_insert && row_break)

client/mysqlimport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static char *field_escape(char *to,const char *from,uint length)
581581
else
582582
{
583583
if (*from == '\'' && !end_backslashes)
584-
*to++= *from; /* We want a dublicate of "'" for MySQL */
584+
*to++= *from; /* We want a duplicate of "'" for MySQL */
585585
end_backslashes=0;
586586
}
587587
}

client/mysqlslap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ slap_connect(MYSQL *mysql)
22832283
opt_mysql_unix_port,
22842284
connect_flags))
22852285
{
2286-
/* Connect suceeded */
2286+
/* Connect succeeded */
22872287
connect_error= 0;
22882288
break;
22892289
}

0 commit comments

Comments
 (0)