diff options
author | Benety Goh <benety@mongodb.com> | 2021-09-22 05:48:03 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-22 10:13:48 +0000 |
commit | 0d792cf4f9d003b02110f249dad767c29a7b0621 (patch) | |
tree | c70d58f1230c47312c8b0779596097683488c2dd | |
parent | 27d9632d277e63f42752b117ac5e93ac4f0e37a7 (diff) | |
download | mongo-0d792cf4f9d003b02110f249dad767c29a7b0621.tar.gz |
SERVER-60011 combine time-series conversion libraries
-rw-r--r-- | src/mongo/db/commands/SConscript | 6 | ||||
-rw-r--r-- | src/mongo/db/index/SConscript | 2 | ||||
-rw-r--r-- | src/mongo/db/ops/SConscript | 3 | ||||
-rw-r--r-- | src/mongo/db/pipeline/SConscript | 2 | ||||
-rw-r--r-- | src/mongo/db/s/SConscript | 2 | ||||
-rw-r--r-- | src/mongo/db/timeseries/SConscript | 47 | ||||
-rw-r--r-- | src/mongo/s/SConscript | 2 | ||||
-rw-r--r-- | src/mongo/s/commands/SConscript | 2 |
8 files changed, 16 insertions, 50 deletions
diff --git a/src/mongo/db/commands/SConscript b/src/mongo/db/commands/SConscript index 3ba4712b8ad..fde798457c6 100644 --- a/src/mongo/db/commands/SConscript +++ b/src/mongo/db/commands/SConscript @@ -366,10 +366,8 @@ env.Library( '$BUILD_DIR/mongo/db/timeseries/bucket_catalog', '$BUILD_DIR/mongo/db/timeseries/bucket_compression', '$BUILD_DIR/mongo/db/timeseries/catalog_helper', - '$BUILD_DIR/mongo/db/timeseries/timeseries_commands_conversion_helper', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/timeseries/timeseries_options', - '$BUILD_DIR/mongo/db/timeseries/timeseries_update_delete_util', '$BUILD_DIR/mongo/db/transaction', '$BUILD_DIR/mongo/db/views/views_mongod', '$BUILD_DIR/mongo/executor/async_request_executor', @@ -526,7 +524,7 @@ env.Library( '$BUILD_DIR/mongo/db/s/sharding_runtime_d', '$BUILD_DIR/mongo/db/s/transaction_coordinator', '$BUILD_DIR/mongo/db/server_options_core', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/idl/idl_parser', '$BUILD_DIR/mongo/util/net/ssl_manager', 'core', diff --git a/src/mongo/db/index/SConscript b/src/mongo/db/index/SConscript index 5ed4e6fe1f1..5dd71231056 100644 --- a/src/mongo/db/index/SConscript +++ b/src/mongo/db/index/SConscript @@ -67,7 +67,7 @@ env.Library( '$BUILD_DIR/mongo/db/query/projection_ast', '$BUILD_DIR/mongo/db/query/sort_pattern', '$BUILD_DIR/mongo/db/record_id_helpers', - '$BUILD_DIR/mongo/db/timeseries/timeseries_dotted_path_support', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/third_party/s2/s2', 'expression_params', 'index_descriptor', diff --git a/src/mongo/db/ops/SConscript b/src/mongo/db/ops/SConscript index 32cf55827ff..35afd79f297 100644 --- a/src/mongo/db/ops/SConscript +++ b/src/mongo/db/ops/SConscript @@ -21,8 +21,7 @@ env.Library( '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface', '$BUILD_DIR/mongo/db/stats/counters', '$BUILD_DIR/mongo/db/stats/server_read_concern_write_concern_metrics', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', - '$BUILD_DIR/mongo/db/timeseries/timeseries_update_delete_util', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/transaction', '$BUILD_DIR/mongo/db/write_ops', '$BUILD_DIR/mongo/util/fail_point', diff --git a/src/mongo/db/pipeline/SConscript b/src/mongo/db/pipeline/SConscript index c0f99f804db..959746748e5 100644 --- a/src/mongo/db/pipeline/SConscript +++ b/src/mongo/db/pipeline/SConscript @@ -353,7 +353,7 @@ pipelineEnv.Library( '$BUILD_DIR/mongo/db/query/projection_ast', '$BUILD_DIR/mongo/db/repl/image_collection_entry', '$BUILD_DIR/mongo/db/sorter/sorter_idl', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/timeseries/timeseries_options', '$BUILD_DIR/mongo/rpc/command_status', ] diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript index 1678dbdffb4..063f50c2c1d 100644 --- a/src/mongo/db/s/SConscript +++ b/src/mongo/db/s/SConscript @@ -365,7 +365,7 @@ env.Library( '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface', '$BUILD_DIR/mongo/db/repl/replica_set_messages', '$BUILD_DIR/mongo/db/timeseries/catalog_helper', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/timeseries/timeseries_options', '$BUILD_DIR/mongo/s/commands/shared_cluster_commands', '$BUILD_DIR/mongo/s/sharding_initialization', diff --git a/src/mongo/db/timeseries/SConscript b/src/mongo/db/timeseries/SConscript index 3294f903b0f..2a5ac31b204 100644 --- a/src/mongo/db/timeseries/SConscript +++ b/src/mongo/db/timeseries/SConscript @@ -47,18 +47,6 @@ env.Library( ) env.Library( - target='timeseries_index_schema_conversion_functions', - source=[ - 'timeseries_index_schema_conversion_functions.cpp', - ], - LIBDEPS_PRIVATE=[ - '$BUILD_DIR/mongo/db/index_names', - '$BUILD_DIR/mongo/db/storage/storage_options', - 'timeseries_options', - ], -) - -env.Library( target='catalog_helper', source=[ 'catalog_helper.cpp', @@ -72,40 +60,23 @@ env.Library( ) env.Library( - target='timeseries_commands_conversion_helper', + target='timeseries_conversion_util', source=[ 'timeseries_commands_conversion_helper.cpp', - ], - LIBDEPS_PRIVATE=[ - '$BUILD_DIR/mongo/db/index_commands_idl', - '$BUILD_DIR/mongo/db/index_names', - '$BUILD_DIR/mongo/db/namespace_string', - '$BUILD_DIR/mongo/db/storage/storage_options', - 'timeseries_index_schema_conversion_functions', - 'timeseries_options', - ], -) - -env.Library( - target='timeseries_dotted_path_support', - source=[ 'timeseries_dotted_path_support.cpp', - ], - LIBDEPS_PRIVATE=[ - '$BUILD_DIR/mongo/base', - ], -) - -env.Library( - target='timeseries_update_delete_util', - source=[ + 'timeseries_index_schema_conversion_functions.cpp', 'timeseries_update_delete_util.cpp', ], LIBDEPS_PRIVATE=[ + '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/bson/mutable/mutable_bson', '$BUILD_DIR/mongo/db/exec/bucket_unpacker', + '$BUILD_DIR/mongo/db/index_commands_idl', + '$BUILD_DIR/mongo/db/index_names', '$BUILD_DIR/mongo/db/namespace_string', '$BUILD_DIR/mongo/db/ops/write_ops_parsers', + '$BUILD_DIR/mongo/db/storage/storage_options', + 'timeseries_options', ], ) @@ -122,9 +93,7 @@ env.CppUnitTest( LIBDEPS=[ '$BUILD_DIR/mongo/db/catalog/catalog_test_fixture', 'bucket_catalog', - 'timeseries_dotted_path_support', - 'timeseries_index_schema_conversion_functions', + 'timeseries_conversion_util', 'timeseries_options', - 'timeseries_update_delete_util', ], ) diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript index be3cf25e9ce..1e7dfd571b5 100644 --- a/src/mongo/s/SConscript +++ b/src/mongo/s/SConscript @@ -637,7 +637,7 @@ env.CppUnitTest( '$BUILD_DIR/mongo/db/ops/write_ops_parsers_test_helpers', '$BUILD_DIR/mongo/db/pipeline/process_interface/mongos_process_interface_factory', '$BUILD_DIR/mongo/db/query/query_test_service_context', - '$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/timeseries/timeseries_options', '$BUILD_DIR/mongo/dbtests/mocklib', '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_mock', diff --git a/src/mongo/s/commands/SConscript b/src/mongo/s/commands/SConscript index 82ee55fb094..5a27378f062 100644 --- a/src/mongo/s/commands/SConscript +++ b/src/mongo/s/commands/SConscript @@ -146,7 +146,7 @@ env.Library( '$BUILD_DIR/mongo/db/shared_request_handling', '$BUILD_DIR/mongo/db/stats/api_version_metrics', '$BUILD_DIR/mongo/db/stats/counters', - '$BUILD_DIR/mongo/db/timeseries/timeseries_commands_conversion_helper', + '$BUILD_DIR/mongo/db/timeseries/timeseries_conversion_util', '$BUILD_DIR/mongo/db/timeseries/timeseries_options', '$BUILD_DIR/mongo/db/views/views', '$BUILD_DIR/mongo/executor/async_multicaster', |