summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/SConscript
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-02-13 12:57:29 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-02-13 17:18:20 -0500
commitf8af7207e2359a119b29b6d4e4c6945cc0bf1a8a (patch)
treeab3a58e47fc318f743a68b1ea9d283c6e439b6fb /src/mongo/db/s/SConscript
parentd3b53c3acae86649f56b44c47258b38e76023457 (diff)
downloadmongo-f8af7207e2359a119b29b6d4e4c6945cc0bf1a8a.tar.gz
SERVER-29908 Create skeleton libraries for the sharding subsystem
Splits the sharding sybsystem into 3 main libraries, which are currently mostly empty, but we will start moving code from all the other existing libraries into them. The libraries are: s/sharding_api, db/s/sharding_api and db/s/sharding_runtime
Diffstat (limited to 'src/mongo/db/s/SConscript')
-rw-r--r--src/mongo/db/s/SConscript44
1 files changed, 27 insertions, 17 deletions
diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript
index 82c3f51f3f8..509d75f5e6b 100644
--- a/src/mongo/db/s/SConscript
+++ b/src/mongo/db/s/SConscript
@@ -4,18 +4,34 @@ Import("env")
env = env.Clone()
+# This is the main library to use for consumers of sharding on a mongod shard. It will pull the
+# version checking and document filtering functionality.
+#
+# This is the only library, which should be referenced directly outside of mongo/s/ and mongo/db/s/
env.Library(
- target='collection_metadata',
+ target='sharding_api_d',
source=[
'collection_metadata.cpp',
],
LIBDEPS=[
- '$BUILD_DIR/mongo/base',
- '$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/range_arithmetic',
- '$BUILD_DIR/mongo/db/service_context',
- '$BUILD_DIR/mongo/s/common_s',
- '$BUILD_DIR/mongo/s/routing_table',
+ '$BUILD_DIR/mongo/s/sharding_routing_table',
+ ],
+)
+
+env.Library(
+ target='sharding_runtime_d',
+ source=[
+ 'migration_destination_manager.cpp',
+ 'session_catalog_migration_destination.cpp',
+ ],
+ LIBDEPS=[
+ '$BUILD_DIR/mongo/db/db_raii',
+ '$BUILD_DIR/mongo/db/dbhelpers',
+ '$BUILD_DIR/mongo/db/repl/oplog',
+ '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
+ '$BUILD_DIR/mongo/db/rw_concern_d',
+ 'sharding',
],
)
@@ -56,14 +72,12 @@ env.Library(
'metadata_manager.cpp',
'migration_chunk_cloner_source.cpp',
'migration_chunk_cloner_source_legacy.cpp',
- 'migration_destination_manager.cpp',
'migration_source_manager.cpp',
'migration_util.cpp',
'move_timing_helper.cpp',
'namespace_metadata_change_notifications.cpp',
'operation_sharding_state.cpp',
'read_only_catalog_cache_loader.cpp',
- 'session_catalog_migration_destination.cpp',
'session_catalog_migration_source.cpp',
'shard_identity_rollback_notifier.cpp',
'shard_metadata_util.cpp',
@@ -87,7 +101,6 @@ env.Library(
'$BUILD_DIR/mongo/db/commands/dcommands_fcv',
'$BUILD_DIR/mongo/db/commands/server_status',
'$BUILD_DIR/mongo/db/common',
- '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/s/client/shard_local',
'$BUILD_DIR/mongo/s/coreshard',
'$BUILD_DIR/mongo/s/is_mongos',
@@ -95,8 +108,8 @@ env.Library(
'$BUILD_DIR/mongo/s/sharding_task_executor',
'$BUILD_DIR/mongo/util/elapsed_tracker',
'balancer',
- 'collection_metadata',
'migration_types',
+ 'sharding_api_d',
'type_shard_identity',
],
LIBDEPS_TAGS=[
@@ -160,11 +173,12 @@ env.Library(
'$BUILD_DIR/mongo/db/catalog/collection_options',
'$BUILD_DIR/mongo/db/commands/dcommands_fcv',
'$BUILD_DIR/mongo/db/repl/read_concern_args',
- '$BUILD_DIR/mongo/db/s/balancer',
'$BUILD_DIR/mongo/executor/network_interface',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client',
'$BUILD_DIR/mongo/s/client/sharding_client',
'$BUILD_DIR/mongo/s/coreshard',
+ 'balancer',
+ 'type_shard_identity',
],
)
@@ -207,16 +221,12 @@ env.Library(
'$BUILD_DIR/mongo/db/bson/dotted_path_support',
'$BUILD_DIR/mongo/db/commands/dcommands_fcv',
'$BUILD_DIR/mongo/db/commands/server_status',
- '$BUILD_DIR/mongo/db/db_raii',
- '$BUILD_DIR/mongo/db/dbhelpers',
'$BUILD_DIR/mongo/db/index_d',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_global',
- '$BUILD_DIR/mongo/db/rw_concern_d',
'$BUILD_DIR/mongo/s/commands/shared_cluster_commands',
'balancer',
- 'collection_metadata',
- 'sharding',
'sharding_catalog_manager',
+ 'sharding_runtime_d',
],
)
@@ -321,7 +331,7 @@ env.CppUnitTest(
'$BUILD_DIR/mongo/db/ops/write_ops_exec',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_mock',
'$BUILD_DIR/mongo/s/shard_server_test_fixture',
- 'sharding',
+ 'sharding_runtime_d',
]
)