diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-07-25 10:10:50 -0400 |
---|---|---|
committer | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-07-27 12:17:36 -0400 |
commit | 4dd46fb7bdc6d3ef62888b01f585d6fed54a081f (patch) | |
tree | f93f820ca7d8e054dacb3a6e9b0d586fd8398431 /src/mongo/db/s/SConscript | |
parent | 7a5f7804f288518f517f79f00555043556320f24 (diff) | |
download | mongo-4dd46fb7bdc6d3ef62888b01f585d6fed54a081f.tar.gz |
SERVER-14394 Move the intial split code to a separate module and add unit tests
Diffstat (limited to 'src/mongo/db/s/SConscript')
-rw-r--r-- | src/mongo/db/s/SConscript | 12 |
1 files changed, 7 insertions, 5 deletions
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', |