diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/SConscript | 4 | ||||
-rw-r--r-- | src/mongo/db/s/SConscript | 2 | ||||
-rw-r--r-- | src/mongo/db/s/collection_metadata_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/metadata_loader_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_initialization_mongod.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/SConscript | 16 | ||||
-rw-r--r-- | src/mongo/s/balancer/migration_manager_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/SConscript | 135 | ||||
-rw-r--r-- | src/mongo/s/catalog/dist_lock_catalog_impl.cpp (renamed from src/mongo/s/catalog/replset/dist_lock_catalog_impl.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/dist_lock_catalog_impl.h (renamed from src/mongo/s/catalog/replset/dist_lock_catalog_impl.h) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/dist_lock_catalog_impl_test.cpp (renamed from src/mongo/s/catalog/replset/dist_lock_catalog_impl_test.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/replset/SConscript | 132 | ||||
-rw-r--r-- | src/mongo/s/catalog/replset_dist_lock_manager.cpp (renamed from src/mongo/s/catalog/replset/replset_dist_lock_manager.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/replset_dist_lock_manager.h (renamed from src/mongo/s/catalog/replset/replset_dist_lock_manager.h) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/replset_dist_lock_manager_test.cpp (renamed from src/mongo/s/catalog/replset/replset_dist_lock_manager_test.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_add_shard_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_add_shard_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_add_shard_to_zone_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_add_shard_to_zone_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_append_db_stats_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_append_db_stats_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_assign_key_range_to_zone_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_assign_key_range_to_zone_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_client_impl.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_client_impl.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_client_impl.h (renamed from src/mongo/s/catalog/replset/sharding_catalog_client_impl.h) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_config_initialization_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_config_initialization_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_drop_coll_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_drop_coll_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_log_change_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_log_change_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_manager_impl.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_manager_impl.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_manager_impl.h (renamed from src/mongo/s/catalog/replset/sharding_catalog_manager_impl.h) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_merge_chunk_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_remove_shard_from_zone_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_remove_shard_from_zone_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_remove_shard_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_remove_shard_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_shard_collection_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_shard_collection_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_split_chunk_test.cpp) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_test_fixture.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_test_fixture.cpp) | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_test_fixture.h (renamed from src/mongo/s/catalog/replset/sharding_catalog_test_fixture.h) | 0 | ||||
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp (renamed from src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp) | 4 | ||||
-rw-r--r-- | src/mongo/s/chunk_manager_tests.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/cluster_identity_loader_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/config_server_test_fixture.cpp | 8 | ||||
-rw-r--r-- | src/mongo/s/sharding_initialization.cpp | 8 | ||||
-rw-r--r-- | src/mongo/s/sharding_test_fixture.cpp | 2 |
40 files changed, 176 insertions, 185 deletions
diff --git a/src/mongo/db/SConscript b/src/mongo/db/SConscript index 4e8afaa1114..494eaf94e2d 100644 --- a/src/mongo/db/SConscript +++ b/src/mongo/db/SConscript @@ -657,8 +657,8 @@ serveronlyLibdeps = [ "$BUILD_DIR/mongo/client/parallel", "$BUILD_DIR/mongo/db/bson/dotted_path_support", "$BUILD_DIR/mongo/executor/network_interface_factory", - "$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_client_impl", - "$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_manager_impl", + "$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl", + "$BUILD_DIR/mongo/s/catalog/sharding_catalog_manager_impl", "$BUILD_DIR/mongo/s/client/sharding_connection_hook", "$BUILD_DIR/mongo/s/coreshard", "$BUILD_DIR/mongo/s/shard_id", diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript index 4bccdd47e45..c30adb6e479 100644 --- a/src/mongo/db/s/SConscript +++ b/src/mongo/db/s/SConscript @@ -155,7 +155,7 @@ env.CppUnitTest( '$BUILD_DIR/mongo/db/auth/authorization_manager_mock_init', '$BUILD_DIR/mongo/db/common', '$BUILD_DIR/mongo/db/service_context_noop_init', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_test_fixture', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_test_fixture', '$BUILD_DIR/mongo/s/coreshard', '$BUILD_DIR/mongo/s/catalog/dist_lock_manager_mock', '$BUILD_DIR/mongo/s/sharding_test_fixture', diff --git a/src/mongo/db/s/collection_metadata_test.cpp b/src/mongo/db/s/collection_metadata_test.cpp index 359cb3b4fc1..06481a6afe1 100644 --- a/src/mongo/db/s/collection_metadata_test.cpp +++ b/src/mongo/db/s/collection_metadata_test.cpp @@ -33,7 +33,7 @@ #include "mongo/db/commands.h" #include "mongo/db/s/collection_metadata.h" #include "mongo/db/s/metadata_loader.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/chunk_version.h" diff --git a/src/mongo/db/s/metadata_loader_test.cpp b/src/mongo/db/s/metadata_loader_test.cpp index 5aaaf11d624..f2e6ea13838 100644 --- a/src/mongo/db/s/metadata_loader_test.cpp +++ b/src/mongo/db/s/metadata_loader_test.cpp @@ -32,7 +32,7 @@ #include "mongo/client/remote_command_targeter_mock.h" #include "mongo/db/s/collection_metadata.h" #include "mongo/db/s/metadata_loader.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" diff --git a/src/mongo/db/s/sharding_initialization_mongod.cpp b/src/mongo/db/s/sharding_initialization_mongod.cpp index 8688f7ccff8..ebfed8383d1 100644 --- a/src/mongo/db/s/sharding_initialization_mongod.cpp +++ b/src/mongo/db/s/sharding_initialization_mongod.cpp @@ -38,7 +38,7 @@ #include "mongo/client/remote_command_targeter_factory_impl.h" #include "mongo/db/server_options.h" #include "mongo/executor/task_executor.h" -#include "mongo/s/catalog/replset/sharding_catalog_manager_impl.h" +#include "mongo/s/catalog/sharding_catalog_manager_impl.h" #include "mongo/s/client/shard_factory.h" #include "mongo/s/client/shard_local.h" #include "mongo/s/client/shard_remote.h" diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript index 07756dbbc64..91be5a20f2d 100644 --- a/src/mongo/s/SConscript +++ b/src/mongo/s/SConscript @@ -22,9 +22,9 @@ env.Library( '$BUILD_DIR/mongo/executor/network_interface_factory', '$BUILD_DIR/mongo/executor/network_interface_thread_pool', '$BUILD_DIR/mongo/executor/thread_pool_task_executor', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_client_impl', - '$BUILD_DIR/mongo/s/catalog/replset/dist_lock_catalog_impl', - '$BUILD_DIR/mongo/s/catalog/replset/replset_dist_lock_manager', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl', + '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_impl', + '$BUILD_DIR/mongo/s/catalog/replset_dist_lock_manager', 'client/sharding_connection_hook', 'coreshard', 'cluster_last_error_info', @@ -100,7 +100,7 @@ env.Library( '$BUILD_DIR/mongo/executor/thread_pool_task_executor_test_fixture', '$BUILD_DIR/mongo/rpc/metadata', '$BUILD_DIR/mongo/s/catalog/dist_lock_manager_mock', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_client_impl', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl', '$BUILD_DIR/mongo/s/coreshard', '$BUILD_DIR/mongo/transport/transport_layer_mock', '$BUILD_DIR/mongo/util/clock_source_mock', @@ -133,8 +133,8 @@ env.Library( '$BUILD_DIR/mongo/executor/thread_pool_task_executor_test_fixture', '$BUILD_DIR/mongo/rpc/metadata', '$BUILD_DIR/mongo/s/catalog/dist_lock_manager_mock', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_client_impl', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_manager_impl', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_manager_impl', '$BUILD_DIR/mongo/s/coreshard', '$BUILD_DIR/mongo/s/serveronly', '$BUILD_DIR/mongo/util/clock_source_mock', @@ -231,7 +231,7 @@ env.CppUnitTest( 'chunk_manager_tests.cpp' ], LIBDEPS=[ - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_test_fixture', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_test_fixture', 'coreshard', ] ) @@ -283,7 +283,7 @@ env.Library( '$BUILD_DIR/mongo/db/repl/repl_coordinator_global', '$BUILD_DIR/mongo/executor/task_executor_pool', '$BUILD_DIR/mongo/s/query/cluster_cursor_manager', - 'catalog/replset/sharding_catalog_client_impl', + 'catalog/sharding_catalog_client_impl', 'client/sharding_client', 'common', ], diff --git a/src/mongo/s/balancer/migration_manager_test.cpp b/src/mongo/s/balancer/migration_manager_test.cpp index 2f93419d61e..64f1aa193ed 100644 --- a/src/mongo/s/balancer/migration_manager_test.cpp +++ b/src/mongo/s/balancer/migration_manager_test.cpp @@ -35,7 +35,7 @@ #include "mongo/s/balancer/migration_manager.h" #include "mongo/s/balancer/type_migration.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/catalog/type_database.h" #include "mongo/s/catalog/type_locks.h" diff --git a/src/mongo/s/catalog/SConscript b/src/mongo/s/catalog/SConscript index fdb7541422b..d99e2bb33c0 100644 --- a/src/mongo/s/catalog/SConscript +++ b/src/mongo/s/catalog/SConscript @@ -2,12 +2,6 @@ Import("env") -env.SConscript( - dirs=[ - 'replset', - ], -) - env.Library( target='sharding_catalog_client', source=[ @@ -73,3 +67,132 @@ env.Library( 'dist_lock_catalog_interface', ] ) + +env.Library( + target='replset_dist_lock_manager', + source=[ + 'replset_dist_lock_manager.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/db/service_context', + '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_interface', + '$BUILD_DIR/mongo/s/catalog/dist_lock_manager', + '$BUILD_DIR/mongo/s/client/sharding_client', + '$BUILD_DIR/mongo/s/coreshard', + '$BUILD_DIR/mongo/util/fail_point' + ], +) + +env.Library( + target='dist_lock_catalog_impl', + source=[ + 'dist_lock_catalog_impl.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/base', + '$BUILD_DIR/mongo/client/read_preference', + '$BUILD_DIR/mongo/client/remote_command_targeter', + '$BUILD_DIR/mongo/db/common', + '$BUILD_DIR/mongo/db/query/command_request_response', + '$BUILD_DIR/mongo/db/repl/read_concern_args', + '$BUILD_DIR/mongo/rpc/command_status', + '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_interface', + '$BUILD_DIR/mongo/s/client/sharding_client', + '$BUILD_DIR/mongo/s/write_ops/batch_write_types', + '$BUILD_DIR/mongo/util/net/hostandport', + ], +) + +env.CppUnitTest( + target='replset_dist_lock_manager_test', + source=[ + 'dist_lock_catalog_impl_test.cpp', + 'replset_dist_lock_manager_test.cpp', + ], + LIBDEPS=[ + 'dist_lock_catalog_impl', + 'replset_dist_lock_manager', + '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_mock', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_mock', + '$BUILD_DIR/mongo/s/sharding_mongod_test_fixture', + ] +) + +env.Library( + target='sharding_catalog_client_impl', + source=[ + 'sharding_catalog_client_impl.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/db/repl/read_concern_args', + '$BUILD_DIR/mongo/db/s/type_shard_identity', + '$BUILD_DIR/mongo/executor/network_interface', + '$BUILD_DIR/mongo/s/catalog/dist_lock_manager', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client', + '$BUILD_DIR/mongo/s/client/sharding_client', + ], + LIBDEPS_TAGS=[ + # Depends on coreshard, but that would be circular + 'incomplete', + ], +) + +env.Library( + target='sharding_catalog_manager_impl', + source=[ + 'sharding_catalog_manager_impl.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/db/db_raii', + '$BUILD_DIR/mongo/db/repl/read_concern_args', + '$BUILD_DIR/mongo/executor/network_interface', + '$BUILD_DIR/mongo/s/client/sharding_client', + ], + LIBDEPS_TAGS=[ + # Depends on coreshard, but that would be circular + 'incomplete', + ], +) + +env.Library( + target='sharding_catalog_test_fixture', + source=[ + 'sharding_catalog_test_fixture.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/s/sharding_test_fixture', + ], +) + +env.CppUnitTest( + target='config_server_catalog_test', + source=[ + 'sharding_catalog_add_shard_test.cpp', + 'sharding_catalog_add_shard_to_zone_test.cpp', + 'sharding_catalog_assign_key_range_to_zone_test.cpp', + 'sharding_catalog_remove_shard_from_zone_test.cpp', + 'sharding_catalog_config_initialization_test.cpp', + 'sharding_catalog_split_chunk_test.cpp', + 'sharding_catalog_merge_chunk_test.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/s/config_server_test_fixture', + ] +) + +env.CppUnitTest( + target='sharding_catalog_test', + source=[ + 'sharding_catalog_append_db_stats_test.cpp', + 'sharding_catalog_drop_coll_test.cpp', + 'sharding_catalog_log_change_test.cpp', + 'sharding_catalog_remove_shard_test.cpp', + 'sharding_catalog_shard_collection_test.cpp', + 'sharding_catalog_test.cpp', + 'sharding_catalog_write_retry_test.cpp', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/s/sharding_test_fixture', + '$BUILD_DIR/mongo/s/catalog/sharding_catalog_test_fixture', + ] +) diff --git a/src/mongo/s/catalog/replset/dist_lock_catalog_impl.cpp b/src/mongo/s/catalog/dist_lock_catalog_impl.cpp index 376cd853954..b4e40cabd64 100644 --- a/src/mongo/s/catalog/replset/dist_lock_catalog_impl.cpp +++ b/src/mongo/s/catalog/dist_lock_catalog_impl.cpp @@ -28,7 +28,7 @@ #include "mongo/platform/basic.h" -#include "mongo/s/catalog/replset/dist_lock_catalog_impl.h" +#include "mongo/s/catalog/dist_lock_catalog_impl.h" #include <string> diff --git a/src/mongo/s/catalog/replset/dist_lock_catalog_impl.h b/src/mongo/s/catalog/dist_lock_catalog_impl.h index 6f26a3a1235..6f26a3a1235 100644 --- a/src/mongo/s/catalog/replset/dist_lock_catalog_impl.h +++ b/src/mongo/s/catalog/dist_lock_catalog_impl.h diff --git a/src/mongo/s/catalog/replset/dist_lock_catalog_impl_test.cpp b/src/mongo/s/catalog/dist_lock_catalog_impl_test.cpp index 99a7d61de8d..141ff330903 100644 --- a/src/mongo/s/catalog/replset/dist_lock_catalog_impl_test.cpp +++ b/src/mongo/s/catalog/dist_lock_catalog_impl_test.cpp @@ -44,8 +44,8 @@ #include "mongo/executor/network_test_env.h" #include "mongo/executor/task_executor_pool.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" +#include "mongo/s/catalog/dist_lock_catalog_impl.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/dist_lock_catalog_impl.h" #include "mongo/s/catalog/sharding_catalog_client_mock.h" #include "mongo/s/catalog/type_lockpings.h" #include "mongo/s/catalog/type_locks.h" diff --git a/src/mongo/s/catalog/replset/SConscript b/src/mongo/s/catalog/replset/SConscript deleted file mode 100644 index 6ccab018b1e..00000000000 --- a/src/mongo/s/catalog/replset/SConscript +++ /dev/null @@ -1,132 +0,0 @@ -# -*- mode: python -*- - -Import("env") - -env.Library( - target='replset_dist_lock_manager', - source=[ - 'replset_dist_lock_manager.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/db/service_context', - '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_interface', - '$BUILD_DIR/mongo/s/catalog/dist_lock_manager', - '$BUILD_DIR/mongo/s/client/sharding_client', - '$BUILD_DIR/mongo/s/coreshard', - '$BUILD_DIR/mongo/util/fail_point' - ], -) - -env.Library( - target='dist_lock_catalog_impl', - source=[ - 'dist_lock_catalog_impl.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/base', - '$BUILD_DIR/mongo/client/read_preference', - '$BUILD_DIR/mongo/client/remote_command_targeter', - '$BUILD_DIR/mongo/db/common', - '$BUILD_DIR/mongo/db/query/command_request_response', - '$BUILD_DIR/mongo/db/repl/read_concern_args', - '$BUILD_DIR/mongo/rpc/command_status', - '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_interface', - '$BUILD_DIR/mongo/s/client/sharding_client', - '$BUILD_DIR/mongo/s/write_ops/batch_write_types', - '$BUILD_DIR/mongo/util/net/hostandport', - ], -) - -env.CppUnitTest( - target='replset_dist_lock_manager_test', - source=[ - 'dist_lock_catalog_impl_test.cpp', - 'replset_dist_lock_manager_test.cpp', - ], - LIBDEPS=[ - 'dist_lock_catalog_impl', - 'replset_dist_lock_manager', - '$BUILD_DIR/mongo/s/catalog/dist_lock_catalog_mock', - '$BUILD_DIR/mongo/s/catalog/sharding_catalog_mock', - '$BUILD_DIR/mongo/s/sharding_mongod_test_fixture', - ] -) - -env.Library( - target='sharding_catalog_client_impl', - source=[ - 'sharding_catalog_client_impl.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/db/repl/read_concern_args', - '$BUILD_DIR/mongo/db/s/type_shard_identity', - '$BUILD_DIR/mongo/executor/network_interface', - '$BUILD_DIR/mongo/s/catalog/dist_lock_manager', - '$BUILD_DIR/mongo/s/catalog/sharding_catalog_client', - '$BUILD_DIR/mongo/s/client/sharding_client', - ], - LIBDEPS_TAGS=[ - # Depends on coreshard, but that would be circular - 'incomplete', - ], -) - -env.Library( - target='sharding_catalog_manager_impl', - source=[ - 'sharding_catalog_manager_impl.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/db/db_raii', - '$BUILD_DIR/mongo/db/repl/read_concern_args', - '$BUILD_DIR/mongo/executor/network_interface', - '$BUILD_DIR/mongo/s/client/sharding_client', - ], - LIBDEPS_TAGS=[ - # Depends on coreshard, but that would be circular - 'incomplete', - ], -) - -env.Library( - target='sharding_catalog_test_fixture', - source=[ - 'sharding_catalog_test_fixture.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/s/sharding_test_fixture', - ], -) - -env.CppUnitTest( - target='config_server_catalog_test', - source=[ - 'sharding_catalog_add_shard_test.cpp', - 'sharding_catalog_add_shard_to_zone_test.cpp', - 'sharding_catalog_assign_key_range_to_zone_test.cpp', - 'sharding_catalog_remove_shard_from_zone_test.cpp', - 'sharding_catalog_config_initialization_test.cpp', - 'sharding_catalog_split_chunk_test.cpp', - 'sharding_catalog_merge_chunk_test.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/s/config_server_test_fixture', - ] -) - -env.CppUnitTest( - target='sharding_catalog_test', - source=[ - 'sharding_catalog_append_db_stats_test.cpp', - 'sharding_catalog_drop_coll_test.cpp', - 'sharding_catalog_log_change_test.cpp', - 'sharding_catalog_remove_shard_test.cpp', - 'sharding_catalog_shard_collection_test.cpp', - 'sharding_catalog_test.cpp', - 'sharding_catalog_write_retry_test.cpp', - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/s/sharding_test_fixture', - '$BUILD_DIR/mongo/s/catalog/replset/sharding_catalog_test_fixture', - ] -) diff --git a/src/mongo/s/catalog/replset/replset_dist_lock_manager.cpp b/src/mongo/s/catalog/replset_dist_lock_manager.cpp index d25fede08b7..01a53a52d1e 100644 --- a/src/mongo/s/catalog/replset/replset_dist_lock_manager.cpp +++ b/src/mongo/s/catalog/replset_dist_lock_manager.cpp @@ -30,7 +30,7 @@ #include "mongo/platform/basic.h" -#include "mongo/s/catalog/replset/replset_dist_lock_manager.h" +#include "mongo/s/catalog/replset_dist_lock_manager.h" #include "mongo/base/status.h" #include "mongo/base/status_with.h" diff --git a/src/mongo/s/catalog/replset/replset_dist_lock_manager.h b/src/mongo/s/catalog/replset_dist_lock_manager.h index d6db97ebc7a..d6db97ebc7a 100644 --- a/src/mongo/s/catalog/replset/replset_dist_lock_manager.h +++ b/src/mongo/s/catalog/replset_dist_lock_manager.h diff --git a/src/mongo/s/catalog/replset/replset_dist_lock_manager_test.cpp b/src/mongo/s/catalog/replset_dist_lock_manager_test.cpp index d46a20c2913..02c9c8f6b1f 100644 --- a/src/mongo/s/catalog/replset/replset_dist_lock_manager_test.cpp +++ b/src/mongo/s/catalog/replset_dist_lock_manager_test.cpp @@ -49,7 +49,7 @@ #include "mongo/executor/task_executor_pool.h" #include "mongo/s/balancer/balancer_configuration.h" #include "mongo/s/catalog/dist_lock_catalog_mock.h" -#include "mongo/s/catalog/replset/replset_dist_lock_manager.h" +#include "mongo/s/catalog/replset_dist_lock_manager.h" #include "mongo/s/catalog/sharding_catalog_client_mock.h" #include "mongo/s/catalog/type_lockpings.h" #include "mongo/s/catalog/type_locks.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_add_shard_test.cpp b/src/mongo/s/catalog/sharding_catalog_add_shard_test.cpp index 8637961c938..8637961c938 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_add_shard_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_add_shard_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_add_shard_to_zone_test.cpp b/src/mongo/s/catalog/sharding_catalog_add_shard_to_zone_test.cpp index 9c2257f85d6..9c2257f85d6 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_add_shard_to_zone_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_add_shard_to_zone_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_append_db_stats_test.cpp b/src/mongo/s/catalog/sharding_catalog_append_db_stats_test.cpp index dfcfc324af4..22b2d3ffbad 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_append_db_stats_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_append_db_stats_test.cpp @@ -35,8 +35,8 @@ #include "mongo/executor/network_interface_mock.h" #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/stdx/future.h" #include "mongo/util/log.h" #include "mongo/util/time_support.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_assign_key_range_to_zone_test.cpp b/src/mongo/s/catalog/sharding_catalog_assign_key_range_to_zone_test.cpp index 104a97a3f6a..104a97a3f6a 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_assign_key_range_to_zone_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_assign_key_range_to_zone_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_client_impl.cpp b/src/mongo/s/catalog/sharding_catalog_client_impl.cpp index d9713718b21..6fd07f23fcb 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_client_impl.cpp +++ b/src/mongo/s/catalog/sharding_catalog_client_impl.cpp @@ -30,7 +30,7 @@ #include "mongo/platform/basic.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" #include <iomanip> #include <pcrecpp.h> diff --git a/src/mongo/s/catalog/replset/sharding_catalog_client_impl.h b/src/mongo/s/catalog/sharding_catalog_client_impl.h index d150f70eaea..d150f70eaea 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_client_impl.h +++ b/src/mongo/s/catalog/sharding_catalog_client_impl.h diff --git a/src/mongo/s/catalog/replset/sharding_catalog_config_initialization_test.cpp b/src/mongo/s/catalog/sharding_catalog_config_initialization_test.cpp index 97e30010b86..97e30010b86 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_config_initialization_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_config_initialization_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_drop_coll_test.cpp b/src/mongo/s/catalog/sharding_catalog_drop_coll_test.cpp index 6282f8cd30a..4777550a370 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_drop_coll_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_drop_coll_test.cpp @@ -36,8 +36,8 @@ #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/catalog/type_shard.h" #include "mongo/s/chunk_version.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_log_change_test.cpp b/src/mongo/s/catalog/sharding_catalog_log_change_test.cpp index 8ec85408a4b..7ddff536bb4 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_log_change_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_log_change_test.cpp @@ -36,8 +36,8 @@ #include "mongo/db/commands.h" #include "mongo/executor/network_interface_mock.h" #include "mongo/executor/task_executor.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/write_ops/batched_command_request.h" #include "mongo/s/write_ops/batched_command_response.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_manager_impl.cpp b/src/mongo/s/catalog/sharding_catalog_manager_impl.cpp index 6a962b33e66..a2f5805f433 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_manager_impl.cpp +++ b/src/mongo/s/catalog/sharding_catalog_manager_impl.cpp @@ -30,7 +30,7 @@ #include "mongo/platform/basic.h" -#include "mongo/s/catalog/replset/sharding_catalog_manager_impl.h" +#include "mongo/s/catalog/sharding_catalog_manager_impl.h" #include <iomanip> diff --git a/src/mongo/s/catalog/replset/sharding_catalog_manager_impl.h b/src/mongo/s/catalog/sharding_catalog_manager_impl.h index 5294e31ace7..5294e31ace7 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_manager_impl.h +++ b/src/mongo/s/catalog/sharding_catalog_manager_impl.h diff --git a/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp b/src/mongo/s/catalog/sharding_catalog_merge_chunk_test.cpp index f3ae19faa30..f3ae19faa30 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_merge_chunk_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_remove_shard_from_zone_test.cpp b/src/mongo/s/catalog/sharding_catalog_remove_shard_from_zone_test.cpp index fa89754211f..fa89754211f 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_remove_shard_from_zone_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_remove_shard_from_zone_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_remove_shard_test.cpp b/src/mongo/s/catalog/sharding_catalog_remove_shard_test.cpp index 9c03758675a..1e9acc10ed9 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_remove_shard_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_remove_shard_test.cpp @@ -39,8 +39,8 @@ #include "mongo/executor/task_executor.h" #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_database.h" #include "mongo/s/catalog/type_shard.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_shard_collection_test.cpp b/src/mongo/s/catalog/sharding_catalog_shard_collection_test.cpp index 2c354c0e6c0..ce2edb237fe 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_shard_collection_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_shard_collection_test.cpp @@ -43,8 +43,8 @@ #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_changelog.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_split_chunk_test.cpp b/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp index a5540940976..a5540940976 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_split_chunk_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_split_chunk_test.cpp diff --git a/src/mongo/s/catalog/replset/sharding_catalog_test.cpp b/src/mongo/s/catalog/sharding_catalog_test.cpp index 1f86688a522..384b9239276 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_test.cpp @@ -43,8 +43,8 @@ #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/catalog/type_database.h" diff --git a/src/mongo/s/catalog/replset/sharding_catalog_test_fixture.cpp b/src/mongo/s/catalog/sharding_catalog_test_fixture.cpp index d3f6fd6fd72..39a53498ded 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_test_fixture.cpp +++ b/src/mongo/s/catalog/sharding_catalog_test_fixture.cpp @@ -29,7 +29,7 @@ #include "mongo/platform/basic.h" #include "mongo/db/commands.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" namespace mongo { diff --git a/src/mongo/s/catalog/replset/sharding_catalog_test_fixture.h b/src/mongo/s/catalog/sharding_catalog_test_fixture.h index 386135d9a6e..386135d9a6e 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_test_fixture.h +++ b/src/mongo/s/catalog/sharding_catalog_test_fixture.h diff --git a/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp b/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp index 45a9e867f8f..eac1b86694c 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp +++ b/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp @@ -43,8 +43,8 @@ #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_changelog.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" diff --git a/src/mongo/s/chunk_manager_tests.cpp b/src/mongo/s/chunk_manager_tests.cpp index 0a5ef867256..4f3e3e87524 100644 --- a/src/mongo/s/chunk_manager_tests.cpp +++ b/src/mongo/s/chunk_manager_tests.cpp @@ -32,7 +32,7 @@ #include "mongo/client/remote_command_targeter_mock.h" #include "mongo/db/operation_context_noop.h" -#include "mongo/s/catalog/replset/sharding_catalog_test_fixture.h" +#include "mongo/s/catalog/sharding_catalog_test_fixture.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/catalog/type_shard.h" diff --git a/src/mongo/s/cluster_identity_loader_test.cpp b/src/mongo/s/cluster_identity_loader_test.cpp index 7eaca44c8a4..f7e33f58b51 100644 --- a/src/mongo/s/cluster_identity_loader_test.cpp +++ b/src/mongo/s/cluster_identity_loader_test.cpp @@ -40,7 +40,7 @@ #include "mongo/rpc/metadata/repl_set_metadata.h" #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/catalog/config_server_version.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" #include "mongo/s/catalog/type_config_version.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/cluster_identity_loader.h" diff --git a/src/mongo/s/config_server_test_fixture.cpp b/src/mongo/s/config_server_test_fixture.cpp index f648eb14721..9a8f8a33dfb 100644 --- a/src/mongo/s/config_server_test_fixture.cpp +++ b/src/mongo/s/config_server_test_fixture.cpp @@ -54,10 +54,10 @@ #include "mongo/rpc/metadata/server_selection_metadata.h" #include "mongo/s/balancer/balancer_configuration.h" #include "mongo/s/catalog/catalog_cache.h" -#include "mongo/s/catalog/replset/dist_lock_catalog_impl.h" -#include "mongo/s/catalog/replset/replset_dist_lock_manager.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_manager_impl.h" +#include "mongo/s/catalog/dist_lock_catalog_impl.h" +#include "mongo/s/catalog/replset_dist_lock_manager.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_manager_impl.h" #include "mongo/s/catalog/type_changelog.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" diff --git a/src/mongo/s/sharding_initialization.cpp b/src/mongo/s/sharding_initialization.cpp index 0c46df7a3cd..51b30053305 100644 --- a/src/mongo/s/sharding_initialization.cpp +++ b/src/mongo/s/sharding_initialization.cpp @@ -48,10 +48,10 @@ #include "mongo/rpc/metadata/metadata_hook.h" #include "mongo/s/balancer/balancer_configuration.h" #include "mongo/s/catalog/catalog_cache.h" -#include "mongo/s/catalog/replset/dist_lock_catalog_impl.h" -#include "mongo/s/catalog/replset/replset_dist_lock_manager.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" -#include "mongo/s/catalog/replset/sharding_catalog_manager_impl.h" +#include "mongo/s/catalog/dist_lock_catalog_impl.h" +#include "mongo/s/catalog/replset_dist_lock_manager.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_manager_impl.h" #include "mongo/s/client/shard_factory.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/client/sharding_network_connection_hook.h" diff --git a/src/mongo/s/sharding_test_fixture.cpp b/src/mongo/s/sharding_test_fixture.cpp index 1b8d8bad983..c7ab3484da3 100644 --- a/src/mongo/s/sharding_test_fixture.cpp +++ b/src/mongo/s/sharding_test_fixture.cpp @@ -52,7 +52,7 @@ #include "mongo/s/balancer/balancer_configuration.h" #include "mongo/s/catalog/catalog_cache.h" #include "mongo/s/catalog/dist_lock_manager_mock.h" -#include "mongo/s/catalog/replset/sharding_catalog_client_impl.h" +#include "mongo/s/catalog/sharding_catalog_client_impl.h" #include "mongo/s/catalog/sharding_catalog_manager.h" #include "mongo/s/catalog/type_changelog.h" #include "mongo/s/catalog/type_collection.h" |