diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-08-18 10:29:06 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-18 16:00:39 +0000 |
commit | 180f4490bfcb1600bec464d65529e03ba11e9717 (patch) | |
tree | 00e5eb4fede81b38ec8e31af89a94ea22931cfed /src/mongo/db/s | |
parent | 38c6756ee1b0990253afb9fbccaf91b7d985241f (diff) | |
download | mongo-180f4490bfcb1600bec464d65529e03ba11e9717.tar.gz |
SERVER-68826 Introduce the server_base library
Diffstat (limited to 'src/mongo/db/s')
38 files changed, 42 insertions, 42 deletions
diff --git a/src/mongo/db/s/SConscript b/src/mongo/db/s/SConscript index ca8ed158e11..37ef82773f3 100644 --- a/src/mongo/db/s/SConscript +++ b/src/mongo/db/s/SConscript @@ -30,15 +30,15 @@ env.Library( 'transaction_coordinator_worker_curop_repository.cpp', ], LIBDEPS=[ - '$BUILD_DIR/mongo/base', - '$BUILD_DIR/mongo/db/catalog/index_catalog', - '$BUILD_DIR/mongo/db/concurrency/lock_manager', - '$BUILD_DIR/mongo/db/dbdirectclient', '$BUILD_DIR/mongo/db/range_arithmetic', - '$BUILD_DIR/mongo/db/repl/replica_set_aware_service', '$BUILD_DIR/mongo/s/grid', ], LIBDEPS_PRIVATE=[ + '$BUILD_DIR/mongo/db/catalog/index_catalog', + '$BUILD_DIR/mongo/db/concurrency/lock_manager', + '$BUILD_DIR/mongo/db/dbdirectclient', + '$BUILD_DIR/mongo/db/repl/replica_set_aware_service', + '$BUILD_DIR/mongo/db/server_base', '$BUILD_DIR/mongo/db/write_block_bypass', ], ) diff --git a/src/mongo/db/s/add_shard_util.cpp b/src/mongo/db/s/add_shard_util.cpp index 957c2626e26..36151320805 100644 --- a/src/mongo/db/s/add_shard_util.cpp +++ b/src/mongo/db/s/add_shard_util.cpp @@ -37,9 +37,9 @@ #include "mongo/db/repl/repl_set_config.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/s/add_shard_cmd_gen.h" +#include "mongo/db/shard_id.h" #include "mongo/s/catalog/sharding_catalog_client.h" #include "mongo/s/cluster_identity_loader.h" -#include "mongo/s/shard_id.h" #include "mongo/s/write_ops/batched_command_request.h" namespace mongo { diff --git a/src/mongo/db/s/balancer/balancer_commands_scheduler.h b/src/mongo/db/s/balancer/balancer_commands_scheduler.h index bf2ad14bb7c..2c75d93e357 100644 --- a/src/mongo/db/s/balancer/balancer_commands_scheduler.h +++ b/src/mongo/db/s/balancer/balancer_commands_scheduler.h @@ -31,9 +31,9 @@ #include "mongo/bson/bsonobj.h" #include "mongo/db/s/balancer/balancer_policy.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor.h" #include "mongo/s/request_types/move_range_request_gen.h" -#include "mongo/s/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.cpp b/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.cpp index f2a2ca609dd..2e32bdd6808 100644 --- a/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.cpp +++ b/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.cpp @@ -32,12 +32,12 @@ #include "mongo/db/client.h" #include "mongo/db/dbdirectclient.h" #include "mongo/db/s/sharding_util.h" +#include "mongo/db/shard_id.h" #include "mongo/logv2/log.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/grid.h" #include "mongo/s/request_types/migration_secondary_throttle_options.h" #include "mongo/s/request_types/shardsvr_join_migrations_request_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/s/shard_key_pattern.h" #include "mongo/util/fail_point.h" diff --git a/src/mongo/db/s/balancer/balancer_policy.h b/src/mongo/db/s/balancer/balancer_policy.h index e88bc0a67fc..bd464ca9499 100644 --- a/src/mongo/db/s/balancer/balancer_policy.h +++ b/src/mongo/db/s/balancer/balancer_policy.h @@ -37,10 +37,10 @@ #include "mongo/bson/simple_bsonobj_comparator.h" #include "mongo/db/namespace_string.h" #include "mongo/db/s/balancer/cluster_statistics.h" +#include "mongo/db/shard_id.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/request_types/auto_split_vector_gen.h" #include "mongo/s/request_types/move_range_request_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/s/shard_version.h" namespace mongo { diff --git a/src/mongo/db/s/balancer/cluster_statistics.h b/src/mongo/db/s/balancer/cluster_statistics.h index 19bb44cc2b0..92dc21d3bc8 100644 --- a/src/mongo/db/s/balancer/cluster_statistics.h +++ b/src/mongo/db/s/balancer/cluster_statistics.h @@ -35,7 +35,7 @@ #include "mongo/base/status_with.h" #include "mongo/db/namespace_string.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/config/config_server_test_fixture.cpp b/src/mongo/db/s/config/config_server_test_fixture.cpp index eedeb9943a3..6b242634154 100644 --- a/src/mongo/db/s/config/config_server_test_fixture.cpp +++ b/src/mongo/db/s/config/config_server_test_fixture.cpp @@ -55,6 +55,7 @@ #include "mongo/db/repl/replication_coordinator_mock.h" #include "mongo/db/s/config/sharding_catalog_manager.h" #include "mongo/db/s/config_server_op_observer.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor_pool.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" #include "mongo/rpc/metadata/repl_set_metadata.h" @@ -70,7 +71,6 @@ #include "mongo/s/config_server_catalog_cache_loader.h" #include "mongo/s/database_version.h" #include "mongo/s/query/cluster_cursor_manager.h" -#include "mongo/s/shard_id.h" #include "mongo/s/write_ops/batched_command_response.h" #include "mongo/util/clock_source_mock.h" #include "mongo/util/tick_source_mock.h" diff --git a/src/mongo/db/s/config/initial_split_policy.h b/src/mongo/db/s/config/initial_split_policy.h index ed731ddaea0..563980f10d0 100644 --- a/src/mongo/db/s/config/initial_split_policy.h +++ b/src/mongo/db/s/config/initial_split_policy.h @@ -35,9 +35,9 @@ #include "mongo/db/catalog/collection_options.h" #include "mongo/db/namespace_string.h" #include "mongo/db/pipeline/pipeline.h" +#include "mongo/db/shard_id.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_tags.h" -#include "mongo/s/shard_id.h" #include "mongo/s/shard_key_pattern.h" #include "mongo/util/string_map.h" diff --git a/src/mongo/db/s/global_index/global_index_cloner_fetcher.h b/src/mongo/db/s/global_index/global_index_cloner_fetcher.h index e6d803bfd60..192cd4988a3 100644 --- a/src/mongo/db/s/global_index/global_index_cloner_fetcher.h +++ b/src/mongo/db/s/global_index/global_index_cloner_fetcher.h @@ -32,7 +32,7 @@ #include "mongo/db/keypattern.h" #include "mongo/db/namespace_string.h" #include "mongo/db/pipeline/pipeline.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" #include "mongo/util/future.h" #include "mongo/util/uuid.h" diff --git a/src/mongo/db/s/migration_destination_manager.h b/src/mongo/db/s/migration_destination_manager.h index 5896fc00528..8a6ba36e5e1 100644 --- a/src/mongo/db/s/migration_destination_manager.h +++ b/src/mongo/db/s/migration_destination_manager.h @@ -42,9 +42,9 @@ #include "mongo/db/s/migration_recipient_recovery_document_gen.h" #include "mongo/db/s/migration_session_id.h" #include "mongo/db/s/session_catalog_migration_destination.h" +#include "mongo/db/shard_id.h" #include "mongo/platform/mutex.h" #include "mongo/s/chunk_manager.h" -#include "mongo/s/shard_id.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/thread.h" #include "mongo/util/cancellation.h" diff --git a/src/mongo/db/s/move_primary_coordinator.cpp b/src/mongo/db/s/move_primary_coordinator.cpp index 95f4b851cc5..a19a5ebb286 100644 --- a/src/mongo/db/s/move_primary_coordinator.cpp +++ b/src/mongo/db/s/move_primary_coordinator.cpp @@ -35,11 +35,11 @@ #include "mongo/db/auth/authorization_session.h" #include "mongo/db/s/move_primary_source_manager.h" #include "mongo/db/s/sharding_state.h" +#include "mongo/db/shard_id.h" #include "mongo/db/write_block_bypass.h" #include "mongo/logv2/log.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/grid.h" -#include "mongo/s/shard_id.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kSharding diff --git a/src/mongo/db/s/move_primary_source_manager.h b/src/mongo/db/s/move_primary_source_manager.h index cd678c95b19..dd6d3d0d03f 100644 --- a/src/mongo/db/s/move_primary_source_manager.h +++ b/src/mongo/db/s/move_primary_source_manager.h @@ -31,8 +31,8 @@ #include "mongo/bson/bsonobj.h" #include "mongo/db/s/database_sharding_state.h" +#include "mongo/db/shard_id.h" #include "mongo/s/request_types/move_primary_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/util/timer.h" namespace mongo { diff --git a/src/mongo/db/s/move_timing_helper.h b/src/mongo/db/s/move_timing_helper.h index a90dd465090..e7f0de9ca2a 100644 --- a/src/mongo/db/s/move_timing_helper.h +++ b/src/mongo/db/s/move_timing_helper.h @@ -32,7 +32,7 @@ #include <string> #include "mongo/bson/bsonobjbuilder.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" #include "mongo/util/timer.h" namespace mongo { diff --git a/src/mongo/db/s/resharding/document_source_resharding_ownership_match.h b/src/mongo/db/s/resharding/document_source_resharding_ownership_match.h index 7a6db2bc125..06c07a5a6f6 100644 --- a/src/mongo/db/s/resharding/document_source_resharding_ownership_match.h +++ b/src/mongo/db/s/resharding/document_source_resharding_ownership_match.h @@ -30,8 +30,8 @@ #pragma once #include "mongo/db/pipeline/document_source.h" +#include "mongo/db/shard_id.h" #include "mongo/s/chunk_manager.h" -#include "mongo/s/shard_id.h" #include "mongo/s/shard_key_pattern.h" namespace mongo { diff --git a/src/mongo/db/s/resharding/resharding_collection_cloner.h b/src/mongo/db/s/resharding/resharding_collection_cloner.h index 97e28a4fce5..7ad1b797658 100644 --- a/src/mongo/db/s/resharding/resharding_collection_cloner.h +++ b/src/mongo/db/s/resharding/resharding_collection_cloner.h @@ -37,7 +37,7 @@ #include "mongo/db/exec/document_value/value.h" #include "mongo/db/namespace_string.h" #include "mongo/db/pipeline/pipeline.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" #include "mongo/s/shard_key_pattern.h" #include "mongo/util/cancellation.h" #include "mongo/util/future.h" diff --git a/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor.h b/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor.h index aa3ff0727e9..7f396c627c1 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor.h +++ b/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor.h @@ -34,8 +34,8 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/s/resharding/resharding_metrics.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor.h" -#include "mongo/s/shard_id.h" #include "mongo/util/cancellation.h" #include "mongo/util/duration.h" #include "mongo/util/future.h" diff --git a/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor_test.cpp b/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor_test.cpp index ed4e41a63f2..11a54beed1e 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor_test.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_commit_monitor_test.cpp @@ -42,9 +42,9 @@ #include "mongo/db/s/resharding/resharding_coordinator_commit_monitor.h" #include "mongo/db/s/resharding/resharding_metrics.h" #include "mongo/db/s/resharding/resharding_server_parameters_gen.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" #include "mongo/logv2/log.h" -#include "mongo/s/shard_id.h" #include "mongo/util/assert_util.h" #include "mongo/util/cancellation.h" #include "mongo/util/duration.h" diff --git a/src/mongo/db/s/resharding/resharding_coordinator_observer.cpp b/src/mongo/db/s/resharding/resharding_coordinator_observer.cpp index 6899a54e4f7..b552bd9bbd5 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_observer.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_observer.cpp @@ -37,9 +37,9 @@ #include "mongo/db/s/resharding/coordinator_document_gen.h" #include "mongo/db/s/resharding/resharding_util.h" #include "mongo/db/service_context.h" +#include "mongo/db/shard_id.h" #include "mongo/logv2/log.h" #include "mongo/s/catalog/type_chunk.h" -#include "mongo/s/shard_id.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kResharding diff --git a/src/mongo/db/s/resharding/resharding_coordinator_observer_test.cpp b/src/mongo/db/s/resharding/resharding_coordinator_observer_test.cpp index bd893bd6dee..3a2764890a2 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_observer_test.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_observer_test.cpp @@ -34,8 +34,8 @@ #include "mongo/db/s/resharding/resharding_coordinator_observer.h" #include "mongo/db/s/resharding/resharding_util.h" +#include "mongo/db/shard_id.h" #include "mongo/logv2/log.h" -#include "mongo/s/shard_id.h" #include "mongo/unittest/unittest.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest diff --git a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp index 55d1ced54d8..9afe2f6cb3a 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_service.cpp +++ b/src/mongo/db/s/resharding/resharding_coordinator_service.cpp @@ -51,6 +51,7 @@ #include "mongo/db/s/sharding_ddl_util.h" #include "mongo/db/s/sharding_logging.h" #include "mongo/db/session/logical_session_cache.h" +#include "mongo/db/shard_id.h" #include "mongo/db/storage/duplicate_key_error_info.h" #include "mongo/db/vector_clock.h" #include "mongo/db/write_concern_options.h" @@ -64,7 +65,6 @@ #include "mongo/s/request_types/drop_collection_if_uuid_not_matching_gen.h" #include "mongo/s/request_types/flush_resharding_state_change_gen.h" #include "mongo/s/request_types/flush_routing_table_cache_updates_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/s/write_ops/batched_command_request.h" #include "mongo/s/write_ops/batched_command_response.h" #include "mongo/util/assert_util.h" diff --git a/src/mongo/db/s/resharding/resharding_coordinator_service.h b/src/mongo/db/s/resharding/resharding_coordinator_service.h index dcf221d1a3a..be08ef7ba9b 100644 --- a/src/mongo/db/s/resharding/resharding_coordinator_service.h +++ b/src/mongo/db/s/resharding/resharding_coordinator_service.h @@ -35,11 +35,11 @@ #include "mongo/db/s/resharding/resharding_coordinator_observer.h" #include "mongo/db/s/resharding/resharding_metrics.h" #include "mongo/db/service_context.h" +#include "mongo/db/shard_id.h" #include "mongo/platform/mutex.h" #include "mongo/s/catalog/type_chunk.h" #include "mongo/s/catalog/type_collection.h" #include "mongo/s/catalog/type_tags.h" -#include "mongo/s/shard_id.h" #include "mongo/util/future.h" namespace mongo { diff --git a/src/mongo/db/s/resharding/resharding_data_replication.h b/src/mongo/db/s/resharding/resharding_data_replication.h index 2e44a5d2a21..8d6659b65e5 100644 --- a/src/mongo/db/s/resharding/resharding_data_replication.h +++ b/src/mongo/db/s/resharding/resharding_data_replication.h @@ -37,9 +37,9 @@ #include "mongo/db/cancelable_operation_context.h" #include "mongo/db/s/resharding/donor_oplog_id_gen.h" #include "mongo/db/s/resharding/resharding_oplog_applier_metrics.h" +#include "mongo/db/shard_id.h" #include "mongo/s/chunk_manager.h" #include "mongo/s/resharding/common_types_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/util/cancellation.h" #include "mongo/util/functional.h" #include "mongo/util/future.h" diff --git a/src/mongo/db/s/resharding/resharding_destined_recipient_test.cpp b/src/mongo/db/s/resharding/resharding_destined_recipient_test.cpp index 51300394adc..0d901bd17dc 100644 --- a/src/mongo/db/s/resharding/resharding_destined_recipient_test.cpp +++ b/src/mongo/db/s/resharding/resharding_destined_recipient_test.cpp @@ -42,13 +42,13 @@ #include "mongo/db/s/sharding_state.h" #include "mongo/db/s/sharding_write_router.h" #include "mongo/db/session/session_catalog_mongod.h" +#include "mongo/db/shard_id.h" #include "mongo/db/transaction/transaction_participant.h" #include "mongo/s/catalog/sharding_catalog_client_mock.h" #include "mongo/s/catalog/type_shard.h" #include "mongo/s/catalog_cache_loader_mock.h" #include "mongo/s/database_version.h" #include "mongo/s/shard_cannot_refresh_due_to_locks_held_exception.h" -#include "mongo/s/shard_id.h" #include "mongo/unittest/unittest.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest diff --git a/src/mongo/db/s/resharding/resharding_oplog_fetcher.h b/src/mongo/db/s/resharding/resharding_oplog_fetcher.h index 37f5090f0e2..5e2e5d351ef 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_fetcher.h +++ b/src/mongo/db/s/resharding/resharding_oplog_fetcher.h @@ -39,9 +39,9 @@ #include "mongo/db/s/resharding/donor_oplog_id_gen.h" #include "mongo/db/s/resharding/resharding_donor_oplog_iterator.h" #include "mongo/db/service_context.h" +#include "mongo/db/shard_id.h" #include "mongo/platform/mutex.h" #include "mongo/s/client/shard.h" -#include "mongo/s/shard_id.h" #include "mongo/util/background.h" #include "mongo/util/cancellation.h" #include "mongo/util/future.h" diff --git a/src/mongo/db/s/resharding/resharding_recipient_service_external_state.h b/src/mongo/db/s/resharding/resharding_recipient_service_external_state.h index 0a2749a66fc..d9ee5bbe574 100644 --- a/src/mongo/db/s/resharding/resharding_recipient_service_external_state.h +++ b/src/mongo/db/s/resharding/resharding_recipient_service_external_state.h @@ -36,8 +36,8 @@ #include "mongo/db/catalog/collection_options.h" #include "mongo/db/s/migration_destination_manager.h" #include "mongo/db/s/resharding/resharding_recipient_service.h" +#include "mongo/db/shard_id.h" #include "mongo/s/chunk_manager.h" -#include "mongo/s/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/resharding/resharding_util.h b/src/mongo/db/s/resharding/resharding_util.h index 0d8aacbe3f7..6ed3319fecd 100644 --- a/src/mongo/db/s/resharding/resharding_util.h +++ b/src/mongo/db/s/resharding/resharding_util.h @@ -42,11 +42,11 @@ #include "mongo/db/s/resharding/coordinator_document_gen.h" #include "mongo/db/s/resharding/donor_oplog_id_gen.h" #include "mongo/db/s/sharding_state_lock.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor.h" #include "mongo/s/catalog/type_tags.h" #include "mongo/s/chunk_manager.h" #include "mongo/s/resharding/common_types_gen.h" -#include "mongo/s/shard_id.h" #include "mongo/util/str.h" namespace mongo { diff --git a/src/mongo/db/s/resharding/resharding_util_test.cpp b/src/mongo/db/s/resharding/resharding_util_test.cpp index 82e8180027e..69368692723 100644 --- a/src/mongo/db/s/resharding/resharding_util_test.cpp +++ b/src/mongo/db/s/resharding/resharding_util_test.cpp @@ -44,8 +44,8 @@ #include "mongo/db/s/resharding/resharding_txn_cloner.h" #include "mongo/db/s/resharding/resharding_util.h" #include "mongo/db/session/session_txn_record_gen.h" +#include "mongo/db/shard_id.h" #include "mongo/s/catalog/type_shard.h" -#include "mongo/s/shard_id.h" #include "mongo/unittest/unittest.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest diff --git a/src/mongo/db/s/session_catalog_migration_destination.cpp b/src/mongo/db/s/session_catalog_migration_destination.cpp index 261458793b6..5ebc16ff05c 100644 --- a/src/mongo/db/s/session_catalog_migration_destination.cpp +++ b/src/mongo/db/s/session_catalog_migration_destination.cpp @@ -46,13 +46,13 @@ #include "mongo/db/s/session_catalog_migration.h" #include "mongo/db/session/logical_session_id.h" #include "mongo/db/session/session_catalog_mongod.h" +#include "mongo/db/shard_id.h" #include "mongo/db/transaction/transaction_participant.h" #include "mongo/db/write_concern.h" #include "mongo/logv2/log.h" #include "mongo/logv2/redaction.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/grid.h" -#include "mongo/s/shard_id.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kSharding diff --git a/src/mongo/db/s/session_catalog_migration_destination.h b/src/mongo/db/s/session_catalog_migration_destination.h index 0dededc6699..94c223d85c1 100644 --- a/src/mongo/db/s/session_catalog_migration_destination.h +++ b/src/mongo/db/s/session_catalog_migration_destination.h @@ -36,8 +36,8 @@ #include "mongo/bson/bsonobj.h" #include "mongo/db/repl/oplog_entry.h" #include "mongo/db/s/migration_session_id.h" +#include "mongo/db/shard_id.h" #include "mongo/platform/mutex.h" -#include "mongo/s/shard_id.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/thread.h" #include "mongo/util/cancellation.h" diff --git a/src/mongo/db/s/sharding_state.h b/src/mongo/db/s/sharding_state.h index e64ba436f17..65b766c943c 100644 --- a/src/mongo/db/s/sharding_state.h +++ b/src/mongo/db/s/sharding_state.h @@ -32,8 +32,8 @@ #include <string> #include "mongo/bson/oid.h" +#include "mongo/db/shard_id.h" #include "mongo/platform/mutex.h" -#include "mongo/s/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/sharding_util.h b/src/mongo/db/s/sharding_util.h index 90375723fd9..e968a3a5b7c 100644 --- a/src/mongo/db/s/sharding_util.h +++ b/src/mongo/db/s/sharding_util.h @@ -33,9 +33,9 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/operation_context.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor.h" #include "mongo/s/async_requests_sender.h" -#include "mongo/s/shard_id.h" namespace mongo { namespace sharding_util { diff --git a/src/mongo/db/s/sharding_util_refresh_test.cpp b/src/mongo/db/s/sharding_util_refresh_test.cpp index bb2673be07c..d386ac55fa0 100644 --- a/src/mongo/db/s/sharding_util_refresh_test.cpp +++ b/src/mongo/db/s/sharding_util_refresh_test.cpp @@ -30,10 +30,10 @@ #include "mongo/client/remote_command_targeter_mock.h" #include "mongo/db/s/config/config_server_test_fixture.h" #include "mongo/db/s/sharding_util.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/thread_pool_task_executor_test_fixture.h" #include "mongo/logv2/log.h" #include "mongo/s/catalog/type_shard.h" -#include "mongo/s/shard_id.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest diff --git a/src/mongo/db/s/start_chunk_clone_request.h b/src/mongo/db/s/start_chunk_clone_request.h index 9451541cbc0..3488776c007 100644 --- a/src/mongo/db/s/start_chunk_clone_request.h +++ b/src/mongo/db/s/start_chunk_clone_request.h @@ -35,8 +35,8 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/s/migration_session_id.h" #include "mongo/db/session/logical_session_id.h" +#include "mongo/db/shard_id.h" #include "mongo/s/request_types/migration_secondary_throttle_options.h" -#include "mongo/s/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/start_chunk_clone_request_test.cpp b/src/mongo/db/s/start_chunk_clone_request_test.cpp index 1d8639988c9..0bfe77c5174 100644 --- a/src/mongo/db/s/start_chunk_clone_request_test.cpp +++ b/src/mongo/db/s/start_chunk_clone_request_test.cpp @@ -37,7 +37,7 @@ #include "mongo/db/jsobj.h" #include "mongo/db/service_context.h" #include "mongo/db/session/logical_session_id_helpers.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" #include "mongo/unittest/unittest.h" namespace mongo { diff --git a/src/mongo/db/s/transaction_coordinator_futures_util.h b/src/mongo/db/s/transaction_coordinator_futures_util.h index 5f6293e83a2..e48f5c5087a 100644 --- a/src/mongo/db/s/transaction_coordinator_futures_util.h +++ b/src/mongo/db/s/transaction_coordinator_futures_util.h @@ -33,10 +33,10 @@ #include <vector> #include "mongo/client/read_preference.h" +#include "mongo/db/shard_id.h" #include "mongo/executor/task_executor.h" #include "mongo/executor/task_executor_pool.h" #include "mongo/s/client/shard.h" -#include "mongo/s/shard_id.h" #include "mongo/util/concurrency/mutex.h" #include "mongo/util/future.h" #include "mongo/util/time_support.h" diff --git a/src/mongo/db/s/transaction_coordinator_structures.h b/src/mongo/db/s/transaction_coordinator_structures.h index af2bdb37a8d..b86be50ad56 100644 --- a/src/mongo/db/s/transaction_coordinator_structures.h +++ b/src/mongo/db/s/transaction_coordinator_structures.h @@ -34,7 +34,7 @@ #include "mongo/bson/bsonobj.h" #include "mongo/bson/bsonobjbuilder.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" namespace mongo { namespace txn { diff --git a/src/mongo/db/s/transaction_coordinator_test_fixture.h b/src/mongo/db/s/transaction_coordinator_test_fixture.h index 5c736a1ea40..62198ae4b73 100644 --- a/src/mongo/db/s/transaction_coordinator_test_fixture.h +++ b/src/mongo/db/s/transaction_coordinator_test_fixture.h @@ -35,7 +35,7 @@ #include "mongo/base/status.h" #include "mongo/db/s/shard_server_test_fixture.h" #include "mongo/db/s/transaction_coordinator.h" -#include "mongo/s/shard_id.h" +#include "mongo/db/shard_id.h" namespace mongo { diff --git a/src/mongo/db/s/type_shard_database.idl b/src/mongo/db/s/type_shard_database.idl index 27b370ac70e..823563e7ecc 100644 --- a/src/mongo/db/s/type_shard_database.idl +++ b/src/mongo/db/s/type_shard_database.idl @@ -52,7 +52,7 @@ structs: description: "Primary shard for this database." type: shard_id validator: - callback: "validateShardId" + callback: "ShardId::validate" optional: false # The following field has been deprecated in 6.0 and should not be used # TODO SERVER-63983 make this field optional |