Skip to content

Commit 5c1c2f6

Browse files
committed
Merge branch 'merge-myrocks' of github.com:MariaDB/mergetrees into bb-10.2-mariarocks
Manually resolved a few conflicts
2 parents fd39f25 + 65d01da commit 5c1c2f6

File tree

87 files changed

+4768
-972
lines changed

Some content is hidden

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

87 files changed

+4768
-972
lines changed

storage/rocksdb/.clang-format

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlinesLeft: false
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: All
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: false
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
BeforeCatch: false
33+
BeforeElse: false
34+
IndentBraces: false
35+
BreakBeforeBinaryOperators: None
36+
BreakBeforeBraces: Attach
37+
BreakBeforeTernaryOperators: true
38+
BreakConstructorInitializersBeforeComma: false
39+
BreakAfterJavaFieldAnnotations: false
40+
BreakStringLiterals: true
41+
ColumnLimit: 80
42+
CommentPragmas: '^ IWYU pragma:'
43+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
44+
ConstructorInitializerIndentWidth: 4
45+
ContinuationIndentWidth: 4
46+
Cpp11BracedListStyle: true
47+
DerivePointerAlignment: false
48+
DisableFormat: false
49+
ExperimentalAutoDetectBinPacking: false
50+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
51+
IncludeCategories:
52+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
53+
Priority: 2
54+
- Regex: '^(<|"(gtest|isl|json)/)'
55+
Priority: 3
56+
- Regex: '.*'
57+
Priority: 1
58+
IncludeIsMainRegex: '$'
59+
IndentCaseLabels: false
60+
IndentWidth: 2
61+
IndentWrappedFunctionNames: false
62+
KeepEmptyLinesAtTheStartOfBlocks: true
63+
MacroBlockBegin: ''
64+
MacroBlockEnd: ''
65+
MaxEmptyLinesToKeep: 1
66+
NamespaceIndentation: None
67+
ObjCBlockIndentWidth: 2
68+
ObjCSpaceAfterProperty: false
69+
ObjCSpaceBeforeProtocolList: true
70+
PenaltyBreakBeforeFirstCallParameter: 19
71+
PenaltyBreakComment: 300
72+
PenaltyBreakFirstLessLess: 120
73+
PenaltyBreakString: 1000
74+
PenaltyExcessCharacter: 1000000
75+
PenaltyReturnTypeOnItsOwnLine: 60
76+
PointerAlignment: Right
77+
ReflowComments: true
78+
SortIncludes: true
79+
SpaceAfterCStyleCast: false
80+
SpaceBeforeAssignmentOperators: true
81+
SpaceBeforeParens: ControlStatements
82+
SpaceInEmptyParentheses: false
83+
SpacesBeforeTrailingComments: 1
84+
SpacesInAngles: false
85+
SpacesInContainerLiterals: true
86+
SpacesInCStyleCastParentheses: false
87+
SpacesInParentheses: false
88+
SpacesInSquareBrackets: false
89+
Standard: Cpp11
90+
TabWidth: 8
91+
UseTab: Never
92+
JavaScriptQuotes: Leave
93+
...

storage/rocksdb/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ SET(ROCKSDB_SE_SOURCES
6565
rdb_utils.cc rdb_utils.h
6666
rdb_threads.cc
6767
rdb_threads.h
68+
rdb_psi.h
69+
rdb_psi.cc
6870
)
6971

7072
MYSQL_ADD_PLUGIN(rocksdb_se ${ROCKSDB_SE_SOURCES} STORAGE_ENGINE MODULE_OUTPUT_NAME ha_rocksdb)
@@ -74,6 +76,12 @@ IF(NOT TARGET rocksdb_se)
7476
RETURN()
7577
ENDIF()
7678

79+
# MARIAROCKS-TODO: ???
80+
CHECK_FUNCTION_EXISTS(fallocate HAVE_FALLOCATE)
81+
IF(HAVE_FALLOCATE)
82+
ADD_DEFINITIONS(-DROCKSDB_FALLOCATE_PRESENT)
83+
ENDIF()
84+
7785
INCLUDE(build_rocksdb.cmake)
7886

7987
ADD_CONVENIENCE_LIBRARY(rocksdb_aux_lib
@@ -89,7 +97,8 @@ ADD_CONVENIENCE_LIBRARY(rocksdb_aux_lib
8997
rdb_sst_info.cc
9098
rdb_sst_info.h
9199
rdb_buff.h
92-
rdb_mariadb_port.h)
100+
rdb_mariadb_port.h
101+
)
93102

94103
ADD_DEPENDENCIES(rocksdb_aux_lib GenError)
95104

storage/rocksdb/build_rocksdb.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ set(ROCKSDB_SOURCES
191191
db/write_batch_base.cc
192192
db/write_controller.cc
193193
db/write_thread.cc
194-
db/xfunc_test_points.cc
195194
memtable/hash_cuckoo_rep.cc
196195
memtable/hash_linklist_rep.cc
197196
memtable/hash_skiplist_rep.cc
@@ -215,7 +214,7 @@ set(ROCKSDB_SOURCES
215214
table/full_filter_block.cc
216215
table/get_context.cc
217216
table/iterator.cc
218-
table/merger.cc
217+
table/merging_iterator.cc
219218
table/sst_file_writer.cc
220219
table/meta_blocks.cc
221220
table/plain_table_builder.cc
@@ -254,6 +253,7 @@ set(ROCKSDB_SOURCES
254253
util/histogram_windowing.cc
255254
util/instrumented_mutex.cc
256255
util/iostats_context.cc
256+
257257
util/lru_cache.cc
258258
tools/ldb_cmd.cc
259259
tools/ldb_tool.cc
@@ -284,7 +284,6 @@ set(ROCKSDB_SOURCES
284284
util/thread_status_util.cc
285285
util/thread_status_util_debug.cc
286286
util/transaction_test_util.cc
287-
util/xfunc.cc
288287
util/xxhash.cc
289288
utilities/backupable/backupable_db.cc
290289
utilities/blob_db/blob_db.cc
@@ -295,7 +294,6 @@ set(ROCKSDB_SOURCES
295294
utilities/document/json_document.cc
296295
utilities/document/json_document_builder.cc
297296
utilities/env_mirror.cc
298-
utilities/env_registry.cc
299297
utilities/geodb/geodb_impl.cc
300298
utilities/leveldb_options/leveldb_options.cc
301299
utilities/lua/rocks_lua_compaction_filter.cc

0 commit comments

Comments
 (0)