Skip to content

Commit 3ad0541

Browse files
committed
These changed were made after pulling 10.2.30 from origin
--------------------------------------------------------- - Temporarily fix MDEV-13782 by commenting out LIKE_FUNC i, CondFilter modified: storage/connect/ha_connect.cc - Make Rest available for MariaDB binary distributed versions. modified: storage/connect/CMakeLists.txt - Remove unused declaration modified: storage/connect/filter.h
2 parents 9c0e462 + 6718d3b commit 3ad0541

File tree

6,094 files changed

+90858
-53543
lines changed

Some content is hidden

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

6,094 files changed

+90858
-53543
lines changed

.clang-format

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -2
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlines: Right
8+
AlignOperands: true
9+
AlignTrailingComments: true
10+
AllowAllArgumentsOnNextLine: true
11+
AllowAllConstructorInitializersOnNextLine: true
12+
AllowAllParametersOfDeclarationOnNextLine: true
13+
AllowShortBlocksOnASingleLine: false
14+
AllowShortCaseLabelsOnASingleLine: false
15+
AllowShortFunctionsOnASingleLine: All
16+
AllowShortLambdasOnASingleLine: All
17+
AllowShortIfStatementsOnASingleLine: Never
18+
AllowShortLoopsOnASingleLine: false
19+
AlwaysBreakAfterDefinitionReturnType: None
20+
AlwaysBreakAfterReturnType: None
21+
AlwaysBreakBeforeMultilineStrings: false
22+
AlwaysBreakTemplateDeclarations: MultiLine
23+
BinPackArguments: true
24+
BinPackParameters: true
25+
BraceWrapping:
26+
AfterCaseLabel: true
27+
AfterClass: true
28+
AfterControlStatement: true
29+
AfterEnum: true
30+
AfterFunction: true
31+
AfterNamespace: true
32+
AfterStruct: true
33+
AfterUnion: true
34+
AfterExternBlock: true
35+
BeforeCatch: true
36+
BeforeElse: true
37+
IndentBraces: false
38+
SplitEmptyFunction: true
39+
SplitEmptyRecord: true
40+
SplitEmptyNamespace: true
41+
BreakBeforeBinaryOperators: None
42+
BreakBeforeBraces: Custom
43+
BreakBeforeInheritanceComma: false
44+
BreakInheritanceList: BeforeColon
45+
BreakBeforeTernaryOperators: true
46+
BreakConstructorInitializersBeforeComma: false
47+
BreakConstructorInitializers: BeforeColon
48+
BreakStringLiterals: true
49+
ColumnLimit: 79
50+
CommentPragmas: '^ IWYU pragma:'
51+
CompactNamespaces: false
52+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
53+
ConstructorInitializerIndentWidth: 4
54+
ContinuationIndentWidth: 4
55+
Cpp11BracedListStyle: true
56+
DerivePointerAlignment: false
57+
DisableFormat: false
58+
ExperimentalAutoDetectBinPacking: false
59+
FixNamespaceComments: true
60+
ForEachMacros:
61+
- foreach
62+
- Q_FOREACH
63+
- BOOST_FOREACH
64+
IncludeBlocks: Preserve
65+
IncludeCategories:
66+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
67+
Priority: 2
68+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
69+
Priority: 3
70+
- Regex: '.*'
71+
Priority: 1
72+
IncludeIsMainRegex: '(Test)?$'
73+
IndentCaseLabels: false
74+
IndentPPDirectives: None
75+
IndentWidth: 2
76+
IndentWrappedFunctionNames: false
77+
KeepEmptyLinesAtTheStartOfBlocks: true
78+
Language: Cpp
79+
MacroBlockBegin: ''
80+
MacroBlockEnd: ''
81+
MaxEmptyLinesToKeep: 1
82+
NamespaceIndentation: None
83+
PenaltyBreakAssignment: 2
84+
PenaltyBreakBeforeFirstCallParameter: 19
85+
PenaltyBreakComment: 300
86+
PenaltyBreakFirstLessLess: 120
87+
PenaltyBreakString: 1000
88+
PenaltyBreakTemplateDeclaration: 10
89+
PenaltyExcessCharacter: 1000000
90+
PenaltyReturnTypeOnItsOwnLine: 60
91+
PointerAlignment: Right
92+
ReflowComments: true
93+
SortIncludes: true
94+
SortUsingDeclarations: true
95+
SpaceAfterCStyleCast: true
96+
SpaceAfterLogicalNot: false
97+
SpaceAfterTemplateKeyword: true
98+
SpaceBeforeAssignmentOperators: false
99+
SpaceBeforeCpp11BracedList: false
100+
SpaceBeforeCtorInitializerColon: true
101+
SpaceBeforeInheritanceColon: true
102+
SpaceBeforeParens: ControlStatements
103+
SpaceBeforeRangeBasedForLoopColon: true
104+
SpaceInEmptyParentheses: false
105+
SpacesBeforeTrailingComments: 1
106+
SpacesInAngles: false
107+
SpacesInContainerLiterals: true
108+
SpacesInCStyleCastParentheses: false
109+
SpacesInParentheses: false
110+
SpacesInSquareBrackets: false
111+
Standard: Cpp11
112+
StatementMacros:
113+
- Q_UNUSED
114+
- QT_REQUIRE_VERSION
115+
TabWidth: 8
116+
UseTab: Never
117+
...

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ make_dist.cmake
8181
mariadb-*.*.*.tar.gz
8282
mariadb-*.*.*/
8383
mysql-test/lib/My/SafeProcess/my_safe_process
84+
mysql-test/lib/My/SafeProcess/wsrep_check_version
8485
mysql-test/mtr
8586
mysql-test/mysql-test-run
8687
mysql-test/var
@@ -189,9 +190,10 @@ storage/myisam/myisampack
189190
storage/myisam/rt_test
190191
storage/myisam/sp_test
191192
storage/rocksdb/ldb
193+
storage/rocksdb/myrocks_hotbackup
192194
storage/rocksdb/mysql_ldb
193-
storage/rocksdb/sst_dump
194195
storage/rocksdb/rdb_source_revision.h
196+
storage/rocksdb/sst_dump
195197
storage/tokudb/PerconaFT/buildheader/db.h
196198
storage/tokudb/PerconaFT/buildheader/make_tdb
197199
storage/tokudb/PerconaFT/buildheader/runcat.sh

BUILD/FINISH.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# You should have received a copy of the GNU Library General Public
1414
# License along with this library; if not, write to the Free
1515
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
16-
# MA 02110-1301, USA
16+
# MA 02110-1335 USA
1717

1818
cflags="$c_warnings $extra_flags $EXTRA_FLAGS $EXTRA_CFLAGS"
1919
cxxflags="$cxx_warnings $base_cxxflags $extra_flags $EXTRA_FLAGS $EXTRA_CXXFLAGS"

BUILD/SETUP.sh

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU Library General Public
1616
# License along with this library; if not, write to the Free
1717
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18-
# MA 02110-1301, USA
18+
# MA 02110-1335 USA
1919

2020
########################################################################
2121

@@ -122,7 +122,8 @@ get_make_parallel_flag
122122
# SSL library to use.--with-ssl will select our bundled yaSSL
123123
# implementation of SSL. --with-ssl=yes will first try system library
124124
# then the boundled one --with-ssl=system will use the system library.
125-
SSL_LIBRARY=--with-ssl=system
125+
# We use bundled by default as this is guaranteed to work with Galera
126+
SSL_LIBRARY=--with-ssl
126127

127128
if [ "x$warning_mode" = "xpedantic" ]; then
128129
warnings="-W -Wall -ansi -pedantic -Wno-long-long -Wno-unused -D_POSIX_SOURCE"
@@ -140,7 +141,7 @@ elif [ "x$warning_mode" = "xmaintainer" ]; then
140141
debug_extra_cflags="-g3"
141142
else
142143
# Both C and C++ warnings
143-
warnings="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized"
144+
warnings="-Wall -Wextra -Wunused -Wwrite-strings -Wno-uninitialized -Wno-strict-aliasing"
144145

145146
# For more warnings, uncomment the following line
146147
# warnings="$warnings -Wshadow"
@@ -159,7 +160,10 @@ fi
159160
# Override -DFORCE_INIT_OF_VARS from debug_cflags. It enables the macro
160161
# UNINIT_VAR(), which is only useful for silencing spurious warnings
161162
# of static analysis tools. We want UNINIT_VAR() to be a no-op in Valgrind.
162-
valgrind_flags="-DHAVE_valgrind -USAFEMALLOC"
163+
# TRASH_FREE_MEMORY is enabled so that we can find wrong memory accesses
164+
# even when running a test without valgrind
165+
#
166+
valgrind_flags="-DHAVE_valgrind -USAFEMALLOC -DTRASH_FREE_MEMORY"
163167
valgrind_flags="$valgrind_flags -UFORCE_INIT_OF_VARS -Wno-uninitialized"
164168
valgrind_flags="$valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
165169
valgrind_configs="--with-valgrind"
@@ -169,7 +173,7 @@ debug_cflags="-DEXTRA_DEBUG -DSAFE_MUTEX -DSAFEMALLOC"
169173
error_inject="--with-error-inject "
170174
#
171175
# Base C++ flags for all builds
172-
base_cxxflags="-felide-constructors -fexceptions -fno-rtti"
176+
base_cxxflags="-felide-constructors -fexceptions"
173177
#
174178
# Flags for optimizing builds.
175179
# Be as fast as we can be without losing our ability to backtrace.
@@ -194,6 +198,8 @@ base_configs="$base_configs --with-extra-charsets=complex "
194198
base_configs="$base_configs --enable-thread-safe-client "
195199
base_configs="$base_configs --with-big-tables $maintainer_mode"
196200
base_configs="$base_configs --with-plugin-aria --with-aria-tmp-tables"
201+
# Following is to get tokudb to work
202+
base_configs="$base_configs --with-jemalloc=NO"
197203

198204
if test -d "$path/../cmd-line-utils/readline"
199205
then
@@ -205,7 +211,7 @@ fi
205211

206212
max_no_embedded_configs="$SSL_LIBRARY --with-plugins=max"
207213
max_no_qc_configs="$SSL_LIBRARY --with-plugins=max --without-query-cache"
208-
max_configs="$SSL_LIBRARY --with-plugins=max --with-embedded-server --with-libevent --without-plugin=plugin_file_key_management --with-plugin-rocksdb=dynamic"
214+
max_configs="$SSL_LIBRARY --with-plugins=max --with-embedded-server --with-libevent --without-plugin=plugin_file_key_management --with-plugin-rocksdb=dynamic --with-plugin-test_sql_discovery=DYNAMIC"
209215
all_configs="$SSL_LIBRARY --with-plugins=max --with-embedded-server --with-innodb_plugin --with-libevent"
210216

211217
#
@@ -249,6 +255,11 @@ if test `$CC -v 2>&1 | tail -1 | sed 's/ .*$//'` = 'gcc' ; then
249255
then
250256
debug_cflags="$debug_cflags -DFORCE_INIT_OF_VARS -Wuninitialized"
251257
fi
258+
if (test '(' "$GCCV1" -gt '6' ')')
259+
then
260+
c_warnings="$c_warnings -Wimplicit-fallthrough=2"
261+
cxx_warnings="$cxx_warnings -Wimplicit-fallthrough=2"
262+
fi
252263
fi
253264

254265

BUILD/autorun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU Library General Public
1616
# License along with this library; if not, write to the Free
1717
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
18-
# MA 02110-1301, USA
18+
# MA 02110-1335 USA
1919

2020
# Create MySQL cmake configure wrapper
2121

BUILD/check-cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
# You should have received a copy of the GNU General Public License
1414
# along with this program; if not, write to the Free Software
15-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
1616

1717
#
1818
# Check cpu of current machine and find the

BUILD/cleanup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program; if not, write to the Free Software
16-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
16+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
1717

1818
path=`dirname $0`
1919
. "$path/SETUP.sh"

BUILD/cmake_configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU Library General Public
1616
# License along with this library; if not, write to the Free
1717
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
18-
# MA 02110-1301, USA
18+
# MA 02110-1335 USA
1919

2020
# Ensure cmake and perl are there
2121
cmake --help >/dev/null 2>&1 || HAVE_CMAKE=no

BUILD/compile-alpha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program; if not, write to the Free Software
16-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
16+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
1717

1818
path=`dirname $0`
1919
. "$path/SETUP.sh"

BUILD/compile-amd64-debug-max

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
1818

1919
path=`dirname $0`
2020
. "$path/SETUP.sh"

0 commit comments

Comments
 (0)