Skip to content

Commit 5444916

Browse files
committed
Merge with last MariaDB version
2 parents 98f70fa + cb204e1 commit 5444916

File tree

5,698 files changed

+93243
-234981
lines changed

Some content is hidden

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

5,698 files changed

+93243
-234981
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: false
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+
...

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pcre/testdata/greppatN4 -text
2525
*.MYD binary
2626
*.MYI binary
2727
*.class binary
28+
*.jar binary
2829

2930
*.c diff=cpp
3031
*.h diff=cpp

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ scripts/mytop
120120
scripts/wsrep_sst_common
121121
scripts/wsrep_sst_mysqldump
122122
scripts/wsrep_sst_rsync
123+
scripts/wsrep_sst_rsync_wan
123124
scripts/wsrep_sst_mariabackup
124125
scripts/wsrep_sst_xtrabackup
125126
scripts/wsrep_sst_xtrabackup-v2
@@ -241,6 +242,7 @@ storage/mroonga/vendor/groonga/src/groonga-benchmark
241242
storage/mroonga/vendor/groonga/src/suggest/groonga-suggest-create-dataset
242243
storage/mroonga/mysql-test/mroonga/storage/r/information_schema_plugins.result
243244
storage/mroonga/mysql-test/mroonga/storage/r/variable_version.result
245+
zlib/zconf.h
244246
xxx/*
245247
yyy/*
246248
zzz/*
@@ -477,3 +479,9 @@ UpgradeLog*.htm
477479

478480
# Microsoft Fakes
479481
FakesAssemblies/
482+
483+
# macOS garbage
484+
.DS_Store
485+
486+
# QtCreator && CodeBlocks
487+
*.cbp

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: 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 Street, Fifth Floor, Boston,
18-
# MA 02110-1301, USA
18+
# MA 02110-1335 USA
1919

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

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: 7 additions & 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
@@ -40,6 +40,12 @@ check_compiler_cpu_flags () {
4040
cc_major=$1
4141
cc_minor=$2
4242
cc_patch=$3
43+
if test -z "$cc_minor"; then
44+
cc_minor="0";
45+
fi
46+
if test -z "$cc_patch"; then
47+
cc_minor="0";
48+
fi
4349
cc_comp=`expr $cc_major '*' 100 '+' $cc_minor`
4450
fi
4551

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 -P cmake/check_minimal_version.cmake >/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"

0 commit comments

Comments
 (0)