1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
# -*- mode: python -*-
Import("env")
Import("wiredtiger")
if not wiredtiger:
Return()
env = env.Clone()
env.Library(
target='storage_wiredtiger_customization_hooks',
source=[
'wiredtiger_customization_hooks.cpp',
'wiredtiger_extensions.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/service_context',
],
)
wtEnv = env.Clone()
wtEnv.InjectThirdParty(libraries=['wiredtiger'])
wtEnv.InjectThirdParty(libraries=['zlib'])
wtEnv.InjectThirdParty(libraries=['valgrind'])
# This is the smallest possible set of files that wraps WT
wtEnv.Library(
target='storage_wiredtiger_core',
source=[
'oplog_stones_server_status_section.cpp',
'wiredtiger_begin_transaction_block.cpp',
'wiredtiger_column_store.cpp',
'wiredtiger_cursor.cpp',
'wiredtiger_cursor_helpers.cpp',
'wiredtiger_global_options.cpp',
'wiredtiger_index.cpp',
'wiredtiger_index_util.cpp',
'wiredtiger_kv_engine.cpp',
'wiredtiger_stats.cpp',
'wiredtiger_oplog_manager.cpp',
'wiredtiger_parameters.cpp',
'wiredtiger_prepare_conflict.cpp',
'wiredtiger_record_store.cpp',
'wiredtiger_recovery_unit.cpp',
'wiredtiger_session_cache.cpp',
'wiredtiger_snapshot_manager.cpp',
'wiredtiger_size_storer.cpp',
'wiredtiger_util.cpp',
'wiredtiger_parameters.idl',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/bson/dotted_path_support',
'$BUILD_DIR/mongo/db/catalog/collection_options',
'$BUILD_DIR/mongo/db/concurrency/lock_manager',
'$BUILD_DIR/mongo/db/curop',
'$BUILD_DIR/mongo/db/global_settings',
'$BUILD_DIR/mongo/db/index/index_access_method',
'$BUILD_DIR/mongo/db/prepare_conflict_tracker',
'$BUILD_DIR/mongo/db/record_id_helpers',
'$BUILD_DIR/mongo/db/repl/repl_settings',
'$BUILD_DIR/mongo/db/server_options_core',
'$BUILD_DIR/mongo/db/server_options_servers',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/db/storage/index_entry_comparison',
'$BUILD_DIR/mongo/db/storage/key_string',
'$BUILD_DIR/mongo/db/storage/record_store_base',
'$BUILD_DIR/mongo/db/storage/recovery_unit_base',
'$BUILD_DIR/mongo/db/storage/storage_file_util',
'$BUILD_DIR/mongo/db/storage/storage_options',
'$BUILD_DIR/mongo/util/concurrency/ticketholder',
'$BUILD_DIR/mongo/util/elapsed_tracker',
'$BUILD_DIR/mongo/util/processinfo',
'$BUILD_DIR/third_party/shim_snappy',
'$BUILD_DIR/third_party/shim_wiredtiger',
'$BUILD_DIR/third_party/shim_zlib',
'storage_wiredtiger_customization_hooks',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/commands/server_status_core',
'$BUILD_DIR/mongo/db/concurrency/exception_util',
'$BUILD_DIR/mongo/db/mongod_options',
'$BUILD_DIR/mongo/db/multitenancy',
'$BUILD_DIR/mongo/db/server_base',
'$BUILD_DIR/mongo/db/shard_role',
'$BUILD_DIR/mongo/db/snapshot_window_options',
'$BUILD_DIR/mongo/db/storage/backup_block',
'$BUILD_DIR/mongo/db/storage/capped_snapshots',
'$BUILD_DIR/mongo/db/storage/storage_engine_parameters',
'$BUILD_DIR/mongo/db/storage/storage_repair_observer',
'$BUILD_DIR/mongo/util/log_and_backoff',
'$BUILD_DIR/mongo/util/options_parser/options_parser',
'oplog_stone_parameters',
],
)
wtEnv.Library(
target='storage_wiredtiger',
source=[
'wiredtiger_init.cpp',
'wiredtiger_options_init.cpp',
'wiredtiger_server_status.cpp',
'wiredtiger_global_options.idl',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/shard_role',
'$BUILD_DIR/mongo/db/storage/storage_engine_impl',
'$BUILD_DIR/mongo/db/storage/storage_engine_lock_file',
'$BUILD_DIR/mongo/db/storage/storage_engine_metadata',
'storage_wiredtiger_core',
'storage_wiredtiger_customization_hooks',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/catalog/database_holder',
'$BUILD_DIR/mongo/db/commands/server_status_core',
'$BUILD_DIR/mongo/db/storage/storage_engine_common',
'$BUILD_DIR/mongo/util/options_parser/options_parser',
],
LIBDEPS_DEPENDENTS=[
'$BUILD_DIR/mongo/db/mongod_initializers',
'$BUILD_DIR/mongo/embedded/embedded',
],
PROGDEPS_DEPENDENTS=[
'$BUILD_DIR/mongo/dbtests/dbtest',
],
LIBDEPS_TAGS=[
'lint-allow-nonprivate-on-deps-dependents',
'lint-allow-bidirectional-edges',
],
)
wtEnv.CppUnitTest(
target='storage_wiredtiger_test',
source=[
'wiredtiger_init_test.cpp',
'wiredtiger_c_api_test.cpp',
'wiredtiger_kv_engine_test.cpp',
'wiredtiger_stats_test.cpp',
'wiredtiger_recovery_unit_test.cpp',
'wiredtiger_session_cache_test.cpp',
'wiredtiger_util_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/index/index_access_method',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/db/repl/replmocks',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/db/service_context_d',
'$BUILD_DIR/mongo/db/service_context_test_fixture',
'$BUILD_DIR/mongo/db/storage/checkpointer',
'$BUILD_DIR/mongo/db/storage/durable_catalog_impl',
'$BUILD_DIR/mongo/db/storage/kv/kv_engine_test_harness',
'$BUILD_DIR/mongo/db/storage/recovery_unit_test_harness',
'$BUILD_DIR/mongo/db/storage/storage_engine_metadata',
'$BUILD_DIR/mongo/db/storage/storage_options',
'$BUILD_DIR/mongo/util/clock_source_mock',
'storage_wiredtiger',
'storage_wiredtiger_core',
],
)
wtEnv.Library(
target='wiredtiger_record_store_test_harness',
source=[
'wiredtiger_record_store_test_harness.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/repl/replmocks',
'$BUILD_DIR/mongo/db/service_context_test_fixture',
'$BUILD_DIR/mongo/db/storage/durable_catalog_impl',
'$BUILD_DIR/mongo/db/storage/record_store_test_harness',
'$BUILD_DIR/mongo/util/clock_source_mock',
'storage_wiredtiger_core',
],
)
wtEnv.Library(
target='additional_wiredtiger_index_tests',
source=[
'wiredtiger_index_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/storage/durable_catalog_impl',
'$BUILD_DIR/mongo/db/storage/sorted_data_interface_test_harness',
'storage_wiredtiger_core',
],
)
wtEnv.Library(
target='oplog_stone_parameters',
source=[
'oplog_stone_parameters.idl',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/server_base',
],
)
wtEnv.Library(
target='storage_wiredtiger_import',
source=[
'wiredtiger_import.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/repl/oplog',
'$BUILD_DIR/mongo/db/shard_role',
'$BUILD_DIR/mongo/db/storage/bson_collection_catalog_entry',
'storage_wiredtiger_core',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/catalog/catalog_helpers',
],
)
wtEnv.CppUnitTest(
target='storage_wiredtiger_record_store_and_index_test',
source=[
'wiredtiger_record_store_test.cpp',
'wiredtiger_column_store_test.cpp',
'wiredtiger_standard_index_test.cpp',
'wiredtiger_standard_record_store_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/multitenancy',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'additional_wiredtiger_index_tests',
'wiredtiger_record_store_test_harness',
],
)
wtEnv.Benchmark(
target='storage_wiredtiger_begin_transaction_block_bm',
source='wiredtiger_begin_transaction_block_bm.cpp',
LIBDEPS=[
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/db/storage/durable_catalog_impl',
'$BUILD_DIR/mongo/unittest/unittest',
'$BUILD_DIR/mongo/util/clock_source_mock',
'storage_wiredtiger_core',
],
)
|