From 4dd46fb7bdc6d3ef62888b01f585d6fed54a081f Mon Sep 17 00:00:00 2001 From: Cheahuychou Mao Date: Wed, 25 Jul 2018 10:10:50 -0400 Subject: SERVER-14394 Move the intial split code to a separate module and add unit tests --- src/mongo/db/s/SConscript | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/mongo/db/s/SConscript') diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript index dc9b1c7458b..59c60799573 100644 --- a/src/mongo/db/s/SConscript +++ b/src/mongo/db/s/SConscript @@ -181,12 +181,12 @@ env.Library( env.Library( target='balancer', source=[ - 'balancer/balancer.cpp', - 'balancer/balancer_chunk_selection_policy.cpp', 'balancer/balancer_chunk_selection_policy_impl.cpp', + 'balancer/balancer_chunk_selection_policy.cpp', 'balancer/balancer_policy.cpp', - 'balancer/cluster_statistics.cpp', + 'balancer/balancer.cpp', 'balancer/cluster_statistics_impl.cpp', + 'balancer/cluster_statistics.cpp', 'balancer/migration_manager.cpp', 'balancer/scoped_migration_request.cpp', 'balancer/type_migration.cpp', @@ -223,13 +223,14 @@ env.Library( target='sharding_catalog_manager', source=[ 'add_shard_util.cpp', + 'config/initial_split_policy.cpp', + 'config/namespace_serializer.cpp', 'config/sharding_catalog_manager_chunk_operations.cpp', 'config/sharding_catalog_manager_collection_operations.cpp', - 'config/sharding_catalog_manager.cpp', 'config/sharding_catalog_manager_database_operations.cpp', 'config/sharding_catalog_manager_shard_operations.cpp', 'config/sharding_catalog_manager_zone_operations.cpp', - 'config/namespace_serializer.cpp', + 'config/sharding_catalog_manager.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/db/audit', @@ -419,6 +420,7 @@ env.CppUnitTest( env.CppUnitTest( target='sharding_catalog_manager_test', source=[ + 'config/initial_split_policy_test.cpp', 'config/sharding_catalog_manager_add_shard_test.cpp', 'config/sharding_catalog_manager_add_shard_to_zone_test.cpp', 'config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp', -- cgit v1.2.1