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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target='update_common',
source=[
'field_checker.cpp',
'log_builder.cpp',
'path_support.cpp',
'storage_validation.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/bson/mutable/mutable_bson',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/matcher/expressions',
],
)
env.Library(
target='update_nodes',
source=[
'addtoset_node.cpp',
'arithmetic_node.cpp',
'array_culling_node.cpp',
'bit_node.cpp',
'compare_node.cpp',
'current_date_node.cpp',
'modifier_node.cpp',
'modifier_table.cpp',
'pop_node.cpp',
'pull_node.cpp',
'pullall_node.cpp',
'push_node.cpp',
'rename_node.cpp',
'set_node.cpp',
'unset_node.cpp',
'update_array_node.cpp',
'update_internal_node.cpp',
'update_leaf_node.cpp',
'update_node.cpp',
'update_object_node.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/update_index_data',
'$BUILD_DIR/mongo/db/vector_clock_mutable',
'update_common',
'update_document_diff',
],
)
env.Library(
target='update',
source=[
'delta_executor.cpp',
'object_replace_executor.cpp',
'pipeline_executor.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/pipeline/pipeline',
'update_document_diff',
'update_nodes',
],
)
env.Library(
target='update_driver',
source=[
'update_driver.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/ops/write_ops_parsers',
'$BUILD_DIR/mongo/db/query/canonical_query',
'$BUILD_DIR/mongo/db/server_options_core',
'update',
],
)
env.Library(
target='update_test_helpers',
source=[
'document_diff_test_helpers.cpp',
],
LIBDEPS=[
'update',
],
)
env.Library(
target='update_document_diff',
source=[
'document_diff_calculator.cpp',
'document_diff_applier.cpp',
'document_diff_serialization.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/update_index_data',
],
)
env.CppUnitTest(
target='db_update_test',
source=[
'addtoset_node_test.cpp',
'arithmetic_node_test.cpp',
'bit_node_test.cpp',
'compare_node_test.cpp',
'current_date_node_test.cpp',
'delta_executor_test.cpp',
'document_diff_calculator_test.cpp',
'document_diff_serialization_test.cpp',
'document_diff_applier_test.cpp',
'document_diff_test.cpp',
'field_checker_test.cpp',
'log_builder_test.cpp',
'modifier_table_test.cpp',
'object_replace_executor_test.cpp',
'path_support_test.cpp',
'pipeline_executor_test.cpp',
'pop_node_test.cpp',
'pull_node_test.cpp',
'pullall_node_test.cpp',
'push_node_test.cpp',
'push_sorter_test.cpp',
'rename_node_test.cpp',
'set_node_test.cpp',
'unset_node_test.cpp',
'update_array_node_test.cpp',
'update_driver_test.cpp',
'update_object_node_test.cpp',
'update_serialization_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/bson/mutable/mutable_bson',
'$BUILD_DIR/mongo/bson/mutable/mutable_bson_test_utils',
'$BUILD_DIR/mongo/db/exec/document_value/document_value_test_util',
'$BUILD_DIR/mongo/db/matcher/expressions',
'$BUILD_DIR/mongo/db/query/collation/collator_interface_mock',
'$BUILD_DIR/mongo/db/query/query_planner',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'$BUILD_DIR/mongo/db/service_context_test_fixture',
'$BUILD_DIR/mongo/db/vector_clock_trivial',
'update',
'update_common',
'update_driver',
'update_test_helpers',
],
)
|