Skip to content

Commit c59c1a0

Browse files
committed
System Versioning 1.0 pre8
Merge branch '10.3' into trunk
2 parents 26971c9 + 0b597d3 commit c59c1a0

File tree

353 files changed

+12698
-8077
lines changed

Some content is hidden

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

353 files changed

+12698
-8077
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ storage/myisam/sp_test
193193
storage/rocksdb/ldb
194194
storage/rocksdb/mysql_ldb
195195
storage/rocksdb/sst_dump
196+
storage/rocksdb/rdb_source_revision.h
196197
storage/tokudb/PerconaFT/buildheader/db.h
197198
storage/tokudb/PerconaFT/buildheader/make_tdb
198199
storage/tokudb/PerconaFT/buildheader/runcat.sh

.travis.compiler.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ if [[ "${TRAVIS_OS_NAME}" == 'linux' ]]; then
1414
export CXX CC=${CXX/++/}
1515
elif [[ "${CXX}" == 'g++' ]]; then
1616
CMAKE_OPT=""
17+
if [[ "${MYSQL_TEST_SUITES}" == 'rpl' ]]; then
18+
CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=TRUE"
19+
CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_MROONGA_STORAGE_ENGINE=TRUE"
20+
fi
1721
export CXX=g++-${GCC_VERSION}
1822
export CC=gcc-${GCC_VERSION}
1923
fi
@@ -33,6 +37,9 @@ else
3337
if which ccache ; then
3438
CMAKE_OPT="${CMAKE_OPT} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
3539
fi
40+
if [[ "${MYSQL_TEST_SUITES}" == 'rpl' ]]; then
41+
CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=ON"
42+
fi
3643
CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_MROONGA_STORAGE_ENGINE=ON"
3744
if [[ "${TYPE}" == "Debug" ]]; then
3845
CMAKE_OPT="${CMAKE_OPT} -DWITHOUT_TOKUDB_STORAGE_ENGINE=ON"

Docs/sp-imp-spec.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
- Statements:
104104
The Lex in THD is replaced by a new Lex structure and the statement,
105105
is parsed as usual. A sp_instr_stmt is created, containing the new
106-
Lex, and added to added to the instructions in sphead.
106+
Lex, and added to the instructions in sphead.
107107
Afterwards, the procedure's Lex is restored in THD.
108108
- SET var:
109109
Setting a local variable generates a sp_instr_set instruction,
@@ -169,7 +169,7 @@
169169

170170
- Parsing CREATE FUNCTION ...
171171

172-
Creating a functions is essensially the same thing as for a PROCEDURE,
172+
Creating a functions is essentially the same thing as for a PROCEDURE,
173173
with the addition that a FUNCTION has a return type and a RETURN
174174
statement, but no OUT or INOUT parameters.
175175

@@ -189,7 +189,7 @@
189189
additional requirement. They will be called in expressions with the same
190190
syntax as UDFs, so UDFs and stored FUNCTIONs share the namespace. Thus,
191191
we must make sure that we do not have UDFs and FUNCTIONs with the same
192-
name (even if they are storded in different places).
192+
name (even if they are stored in different places).
193193

194194
This means that we can reparse the procedure as many time as we want.
195195
The first time, the resulting Lex is used to store the procedure in
@@ -225,7 +225,7 @@
225225

226226
sql_parse.cc:mysql_execute_command() then uses sp.cc:sp_find() to
227227
get the sp_head for the procedure (which may have been read from the
228-
database or feetched from the in-memory cache) and calls the sp_head's
228+
database or fetched from the in-memory cache) and calls the sp_head's
229229
method execute().
230230
Note: It's important that substatements called by the procedure do not
231231
do send_ok(). Fortunately, there is a flag in THD->net to disable
@@ -545,7 +545,7 @@
545545
Cons: Uses more memory, each SP read from table once per thread.
546546

547547
Unfortunately, we cannot use alternative 1 for the time being, as most
548-
of the datastructures to be cached (lex and items) are not reentrant
548+
of the data structures to be cached (lex and items) are not reentrant
549549
and thread-safe. (Things are modifed at execution, we have THD pointers
550550
stored everywhere, etc.)
551551
This leaves us with alternative 2, one cache per thread; or actually

VERSION

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

appveyor.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 10.2-{build}
2+
before_build:
3+
- md %APPVEYOR_BUILD_FOLDER%\win_build
4+
- cd %APPVEYOR_BUILD_FOLDER%\win_build
5+
- cmake .. -G "Visual Studio 15 2017" -DBISON_EXECUTABLE=C:\cygwin\bin\bison
6+
- dir
7+
build:
8+
project: win_build\MySQL.sln
9+
parallel: true
10+
verbosity: minimal
11+
configuration:
12+
- Debug
13+
test:
14+
test_script:
15+
- cd %APPVEYOR_BUILD_FOLDER%\win_build\mysql-test
16+
- perl mysql-test-run.pl --force --max-test-fail=20 --parallel=6 --testcase-timeout=4 --skip-test-list=unstable-tests --suite=main,innodb,plugins,mariabackup
17+
image: Visual Studio 2017

client/client_priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ enum options_client
9898
OPT_REPORT_PROGRESS,
9999
OPT_SKIP_ANNOTATE_ROWS_EVENTS,
100100
OPT_SSL_CRL, OPT_SSL_CRLPATH,
101+
OPT_PRINT_ROW_COUNT, OPT_PRINT_ROW_EVENT_POSITIONS,
101102
OPT_MAX_CLIENT_OPTION /* should be always the last */
102103
};
103104

client/mysql.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,8 +1795,12 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
17951795
break;
17961796
case OPT_MYSQL_PROTOCOL:
17971797
#ifndef EMBEDDED_LIBRARY
1798-
opt_protocol= find_type_or_exit(argument, &sql_protocol_typelib,
1799-
opt->name);
1798+
if ((opt_protocol= find_type_with_warning(argument, &sql_protocol_typelib,
1799+
opt->name)) <= 0)
1800+
{
1801+
sf_leaking_memory= 1; /* no memory leak reports here */
1802+
exit(1);
1803+
}
18001804
#endif
18011805
break;
18021806
case OPT_SERVER_ARG:

client/mysqladmin.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,12 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
299299
#endif
300300
break;
301301
case OPT_MYSQL_PROTOCOL:
302-
opt_protocol= find_type_or_exit(argument, &sql_protocol_typelib,
303-
opt->name);
302+
if ((opt_protocol= find_type_with_warning(argument, &sql_protocol_typelib,
303+
opt->name)) <= 0)
304+
{
305+
sf_leaking_memory= 1; /* no memory leak reports here */
306+
exit(1);
307+
}
304308
break;
305309
}
306310
return 0;

0 commit comments

Comments
 (0)