summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-04-18 18:28:13 -0400
committerAndrew Morrow <acm@mongodb.com>2018-05-05 12:29:55 -0400
commit51dce76324173089098e8c9fd09e46b98b32adc4 (patch)
tree1093a4866d1fc3e7da1cba2fa2ae4f56b536f033 /src/mongo/db
parent30994f3bacb6e814ae015d83693c549a3b924ccc (diff)
downloadmongo-51dce76324173089098e8c9fd09e46b98b32adc4.tar.gz
SERVER-34805 Refactor the network libraries and move messages types to rpc/protocol
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/SConscript8
-rw-r--r--src/mongo/db/audit.h2
-rw-r--r--src/mongo/db/auth/SConscript2
-rw-r--r--src/mongo/db/auth/address_restriction_test.cpp2
-rw-r--r--src/mongo/db/auth/sasl_mechanism_registry.cpp2
-rw-r--r--src/mongo/db/auth/user_document_parser_test.cpp2
-rw-r--r--src/mongo/db/clientcursor.h1
-rw-r--r--src/mongo/db/commands.h2
-rw-r--r--src/mongo/db/commands/dbhash.cpp2
-rw-r--r--src/mongo/db/commands/generic_servers.cpp2
-rw-r--r--src/mongo/db/commands/server_status.cpp2
-rw-r--r--src/mongo/db/commands/write_commands/write_commands_common.h1
-rw-r--r--src/mongo/db/concurrency/SConscript4
-rw-r--r--src/mongo/db/curop.cpp2
-rw-r--r--src/mongo/db/curop.h1
-rw-r--r--src/mongo/db/db.cpp2
-rw-r--r--src/mongo/db/db.h1
-rw-r--r--src/mongo/db/dbmessage.h2
-rw-r--r--src/mongo/db/introspect.h2
-rw-r--r--src/mongo/db/log_process_details.cpp3
-rw-r--r--src/mongo/db/ops/write_ops.h4
-rw-r--r--src/mongo/db/ops/write_ops_parsers_test_helpers.h2
-rw-r--r--src/mongo/db/pipeline/document_source_coll_stats.cpp2
-rw-r--r--src/mongo/db/pipeline/document_source_index_stats.cpp2
-rw-r--r--src/mongo/db/pipeline/pipeline_d.cpp1
-rw-r--r--src/mongo/db/query/explain.cpp2
-rw-r--r--src/mongo/db/query/find.h2
-rw-r--r--src/mongo/db/repl/SConscript2
-rw-r--r--src/mongo/db/repl/isself.cpp2
-rw-r--r--src/mongo/db/repl/isself_test.cpp2
-rw-r--r--src/mongo/db/repl/oplog_interface_local.cpp2
-rw-r--r--src/mongo/db/repl/repl_set_commands.cpp2
-rw-r--r--src/mongo/db/server_options_helpers.cpp1
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
-rw-r--r--src/mongo/db/service_entry_point_common.h2
-rw-r--r--src/mongo/db/session.cpp2
-rw-r--r--src/mongo/db/session_test.cpp2
-rw-r--r--src/mongo/db/sessions_collection_sharded.cpp2
-rw-r--r--src/mongo/db/stats/counters.h2
-rw-r--r--src/mongo/db/stats/top.h1
40 files changed, 39 insertions, 47 deletions
diff --git a/src/mongo/db/SConscript b/src/mongo/db/SConscript
index a77d3d7de2e..3821a34d592 100644
--- a/src/mongo/db/SConscript
+++ b/src/mongo/db/SConscript
@@ -167,7 +167,7 @@ env.Library(
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
- '$BUILD_DIR/mongo/util/net/network',
+ '$BUILD_DIR/mongo/util/net/ssl_manager',
]
)
@@ -389,9 +389,9 @@ env.Clone().InjectModule("enterprise").Library(
'$BUILD_DIR/mongo/util/cmdline_utils/cmdline_utils',
'$BUILD_DIR/mongo/util/fail_point',
'$BUILD_DIR/mongo/transport/message_compressor',
- # The dependency on network is a temporary crutch that should go away once the
+ # The dependency on net/ssl_manager is a temporary crutch that should go away once the
# networking library has separate options
- '$BUILD_DIR/mongo/util/net/network',
+ '$BUILD_DIR/mongo/util/net/ssl_manager',
'$BUILD_DIR/mongo/util/options_parser/options_parser',
'server_options_core',
'server_parameters',
@@ -493,7 +493,7 @@ env.Library(
'$BUILD_DIR/mongo/util/clock_sources',
'$BUILD_DIR/mongo/util/concurrency/spin_lock',
'$BUILD_DIR/mongo/util/fail_point',
- '$BUILD_DIR/mongo/util/net/host',
+ '$BUILD_DIR/mongo/util/net/network',
'$BUILD_DIR/mongo/util/periodic_runner',
],
)
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h
index be20849545a..10cbd651944 100644
--- a/src/mongo/db/audit.h
+++ b/src/mongo/db/audit.h
@@ -36,7 +36,7 @@
#include "mongo/base/error_codes.h"
#include "mongo/db/auth/privilege.h"
#include "mongo/db/auth/user.h"
-#include "mongo/util/net/op_msg.h"
+#include "mongo/rpc/op_msg.h"
namespace mongo {
diff --git a/src/mongo/db/auth/SConscript b/src/mongo/db/auth/SConscript
index ccc15db37bb..ee7829fb043 100644
--- a/src/mongo/db/auth/SConscript
+++ b/src/mongo/db/auth/SConscript
@@ -85,7 +85,7 @@ env.Library(
'$BUILD_DIR/mongo/db/update/update_driver',
'$BUILD_DIR/mongo/util/md5',
'$BUILD_DIR/mongo/util/icu',
- '$BUILD_DIR/mongo/util/net/network',
+ '$BUILD_DIR/mongo/util/net/ssl_manager',
],
)
diff --git a/src/mongo/db/auth/address_restriction_test.cpp b/src/mongo/db/auth/address_restriction_test.cpp
index 380e35d8d74..136dc8da5a4 100644
--- a/src/mongo/db/auth/address_restriction_test.cpp
+++ b/src/mongo/db/auth/address_restriction_test.cpp
@@ -30,8 +30,8 @@
#include "mongo/db/auth/address_restriction.h"
#include "mongo/unittest/unittest.h"
-#include "mongo/util/net/sock.h"
#include "mongo/util/net/sockaddr.h"
+#include "mongo/util/net/socket_utils.h"
namespace mongo {
namespace {
diff --git a/src/mongo/db/auth/sasl_mechanism_registry.cpp b/src/mongo/db/auth/sasl_mechanism_registry.cpp
index 4daebdb5542..3426ca97b80 100644
--- a/src/mongo/db/auth/sasl_mechanism_registry.cpp
+++ b/src/mongo/db/auth/sasl_mechanism_registry.cpp
@@ -36,7 +36,7 @@
#include "mongo/db/auth/user.h"
#include "mongo/util/icu.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/scopeguard.h"
#include "mongo/util/sequence_util.h"
diff --git a/src/mongo/db/auth/user_document_parser_test.cpp b/src/mongo/db/auth/user_document_parser_test.cpp
index 94f9f9d70b0..77e795571a8 100644
--- a/src/mongo/db/auth/user_document_parser_test.cpp
+++ b/src/mongo/db/auth/user_document_parser_test.cpp
@@ -40,7 +40,7 @@
#include "mongo/db/auth/user_document_parser.h"
#include "mongo/db/jsobj.h"
#include "mongo/unittest/unittest.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#define ASSERT_NULL(EXPR) ASSERT_FALSE(EXPR)
#define ASSERT_NON_NULL(EXPR) ASSERT_TRUE(EXPR)
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 42e7c20f069..a07e54e1524 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -39,7 +39,6 @@
#include "mongo/db/record_id.h"
#include "mongo/db/repl/read_concern_level.h"
#include "mongo/stdx/functional.h"
-#include "mongo/util/net/message.h"
namespace mongo {
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index dbdaf8153a4..b0573ab3a97 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -43,9 +43,9 @@
#include "mongo/db/query/explain.h"
#include "mongo/db/repl/read_concern_args.h"
#include "mongo/db/write_concern.h"
+#include "mongo/rpc/op_msg.h"
#include "mongo/rpc/reply_builder_interface.h"
#include "mongo/stdx/functional.h"
-#include "mongo/util/net/op_msg.h"
#include "mongo/util/string_map.h"
namespace mongo {
diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp
index e1db0f7fd08..c7aa1c64e14 100644
--- a/src/mongo/db/commands/dbhash.cpp
+++ b/src/mongo/db/commands/dbhash.cpp
@@ -47,7 +47,7 @@
#include "mongo/stdx/mutex.h"
#include "mongo/util/log.h"
#include "mongo/util/md5.hpp"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/timer.h"
namespace mongo {
diff --git a/src/mongo/db/commands/generic_servers.cpp b/src/mongo/db/commands/generic_servers.cpp
index 152b9437966..c3612a49a26 100644
--- a/src/mongo/db/commands/generic_servers.cpp
+++ b/src/mongo/db/commands/generic_servers.cpp
@@ -41,7 +41,7 @@
#include "mongo/util/fail_point.h"
#include "mongo/util/fail_point_service.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/ntservice.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/ramlog.h"
diff --git a/src/mongo/db/commands/server_status.cpp b/src/mongo/db/commands/server_status.cpp
index 041c4e31ab6..65c653fc089 100644
--- a/src/mongo/db/commands/server_status.cpp
+++ b/src/mongo/db/commands/server_status.cpp
@@ -51,7 +51,7 @@
#include "mongo/transport/service_entry_point.h"
#include "mongo/util/log.h"
#include "mongo/util/net/hostname_canonicalization.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/net/ssl_manager.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/ramlog.h"
diff --git a/src/mongo/db/commands/write_commands/write_commands_common.h b/src/mongo/db/commands/write_commands/write_commands_common.h
index 8f9110743cc..871744d2c69 100644
--- a/src/mongo/db/commands/write_commands/write_commands_common.h
+++ b/src/mongo/db/commands/write_commands/write_commands_common.h
@@ -32,7 +32,6 @@
#include "mongo/db/jsobj.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/ops/write_ops_gen.h"
-#include "mongo/util/net/op_msg.h"
/**
* Contains common functionality shared between the batch write commands in mongos and mongod.
diff --git a/src/mongo/db/concurrency/SConscript b/src/mongo/db/concurrency/SConscript
index 41c5abace77..947096a1eab 100644
--- a/src/mongo/db/concurrency/SConscript
+++ b/src/mongo/db/concurrency/SConscript
@@ -42,12 +42,10 @@ env.Library(
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/util/background_job',
-
- # Temporary crutch since the ssl cleanup is hard coded in background.cpp
'$BUILD_DIR/mongo/db/server_parameters',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/util/concurrency/spin_lock',
- '$BUILD_DIR/mongo/util/net/network',
+ '$BUILD_DIR/mongo/util/concurrency/ticketholder',
'$BUILD_DIR/third_party/shim_boost',
],
)
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 7e49341609c..bca7c71a7ff 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -46,7 +46,7 @@
#include "mongo/rpc/metadata/client_metadata.h"
#include "mongo/rpc/metadata/client_metadata_ismaster.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/stringutils.h"
namespace mongo {
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index d4780730635..06bc4934842 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -37,7 +37,6 @@
#include "mongo/db/operation_context.h"
#include "mongo/db/server_options.h"
#include "mongo/platform/atomic_word.h"
-#include "mongo/util/net/message.h"
#include "mongo/util/progress_meter.h"
#include "mongo/util/time_support.h"
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp
index f9496fe49cf..1742e7b5197 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -158,7 +158,7 @@
#include "mongo/util/fail_point_service.h"
#include "mongo/util/fast_clock_source_factory.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/net/ssl_manager.h"
#include "mongo/util/ntservice.h"
#include "mongo/util/options_parser/startup_options.h"
diff --git a/src/mongo/db/db.h b/src/mongo/db/db.h
index e94bb34ccb2..b269cc03dbe 100644
--- a/src/mongo/db/db.h
+++ b/src/mongo/db/db.h
@@ -34,7 +34,6 @@
#include "mongo/db/catalog/database_holder.h"
#include "mongo/db/client.h"
#include "mongo/db/curop.h"
-#include "mongo/util/net/message.h"
namespace mongo {
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index a7228cbc4be..e545130e7ed 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -35,7 +35,7 @@
#include "mongo/client/constants.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/server_options.h"
-#include "mongo/util/net/message.h"
+#include "mongo/rpc/message.h"
namespace mongo {
diff --git a/src/mongo/db/introspect.h b/src/mongo/db/introspect.h
index bf2214cde34..c880b7c2577 100644
--- a/src/mongo/db/introspect.h
+++ b/src/mongo/db/introspect.h
@@ -29,7 +29,7 @@
#pragma once
#include "mongo/base/status.h"
-#include "mongo/util/net/message.h"
+#include "mongo/rpc/message.h"
namespace mongo {
diff --git a/src/mongo/db/log_process_details.cpp b/src/mongo/db/log_process_details.cpp
index d12b0ebce29..3719699aaa5 100644
--- a/src/mongo/db/log_process_details.cpp
+++ b/src/mongo/db/log_process_details.cpp
@@ -39,8 +39,7 @@
#include "mongo/db/server_options.h"
#include "mongo/db/server_options_helpers.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
-#include "mongo/util/net/ssl_manager.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/version.h"
diff --git a/src/mongo/db/ops/write_ops.h b/src/mongo/db/ops/write_ops.h
index 4f97d466dff..c3201f7f56f 100644
--- a/src/mongo/db/ops/write_ops.h
+++ b/src/mongo/db/ops/write_ops.h
@@ -29,8 +29,8 @@
#pragma once
#include "mongo/db/ops/write_ops_gen.h"
-#include "mongo/util/net/message.h"
-#include "mongo/util/net/op_msg.h"
+#include "mongo/rpc/message.h"
+#include "mongo/rpc/op_msg.h"
namespace mongo {
diff --git a/src/mongo/db/ops/write_ops_parsers_test_helpers.h b/src/mongo/db/ops/write_ops_parsers_test_helpers.h
index 4debd525945..2c35eb5abfd 100644
--- a/src/mongo/db/ops/write_ops_parsers_test_helpers.h
+++ b/src/mongo/db/ops/write_ops_parsers_test_helpers.h
@@ -29,7 +29,7 @@
#pragma once
#include "mongo/db/jsobj.h"
-#include "mongo/util/net/op_msg.h"
+#include "mongo/rpc/op_msg.h"
namespace mongo {
/**
diff --git a/src/mongo/db/pipeline/document_source_coll_stats.cpp b/src/mongo/db/pipeline/document_source_coll_stats.cpp
index 7d05a806e98..9aec2ba3475 100644
--- a/src/mongo/db/pipeline/document_source_coll_stats.cpp
+++ b/src/mongo/db/pipeline/document_source_coll_stats.cpp
@@ -33,7 +33,7 @@
#include "mongo/bson/bsonobj.h"
#include "mongo/db/pipeline/lite_parsed_document_source.h"
#include "mongo/db/stats/top.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/time_support.h"
using boost::intrusive_ptr;
diff --git a/src/mongo/db/pipeline/document_source_index_stats.cpp b/src/mongo/db/pipeline/document_source_index_stats.cpp
index dfb69786d18..a87c763f30f 100644
--- a/src/mongo/db/pipeline/document_source_index_stats.cpp
+++ b/src/mongo/db/pipeline/document_source_index_stats.cpp
@@ -32,7 +32,7 @@
#include "mongo/db/pipeline/lite_parsed_document_source.h"
#include "mongo/db/server_options.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
namespace mongo {
diff --git a/src/mongo/db/pipeline/pipeline_d.cpp b/src/mongo/db/pipeline/pipeline_d.cpp
index 52b7860c511..7b5cd468130 100644
--- a/src/mongo/db/pipeline/pipeline_d.cpp
+++ b/src/mongo/db/pipeline/pipeline_d.cpp
@@ -87,7 +87,6 @@
#include "mongo/s/grid.h"
#include "mongo/stdx/memory.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
#include "mongo/util/time_support.h"
namespace mongo {
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp
index ae985487ffb..daefe9c3aea 100644
--- a/src/mongo/db/query/explain.cpp
+++ b/src/mongo/db/query/explain.cpp
@@ -52,7 +52,7 @@
#include "mongo/db/server_options.h"
#include "mongo/db/server_parameters.h"
#include "mongo/util/mongoutils/str.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/version.h"
namespace {
diff --git a/src/mongo/db/query/find.h b/src/mongo/db/query/find.h
index 42a0da92380..ed049ae7e8d 100644
--- a/src/mongo/db/query/find.h
+++ b/src/mongo/db/query/find.h
@@ -34,7 +34,7 @@
#include "mongo/db/dbmessage.h"
#include "mongo/db/operation_context.h"
#include "mongo/db/query/canonical_query.h"
-#include "mongo/util/net/message.h"
+#include "mongo/rpc/message.h"
namespace mongo {
diff --git a/src/mongo/db/repl/SConscript b/src/mongo/db/repl/SConscript
index 46c69c67ee4..8599eb1db81 100644
--- a/src/mongo/db/repl/SConscript
+++ b/src/mongo/db/repl/SConscript
@@ -477,7 +477,7 @@ env.Library(
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
- '$BUILD_DIR/mongo/util/net/host',
+ '$BUILD_DIR/mongo/util/net/network',
],
)
diff --git a/src/mongo/db/repl/isself.cpp b/src/mongo/db/repl/isself.cpp
index fac8572433f..2d32cfc0b8e 100644
--- a/src/mongo/db/repl/isself.cpp
+++ b/src/mongo/db/repl/isself.cpp
@@ -46,7 +46,7 @@
#include "mongo/db/commands.h"
#include "mongo/db/service_context.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/scopeguard.h"
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || \
diff --git a/src/mongo/db/repl/isself_test.cpp b/src/mongo/db/repl/isself_test.cpp
index 254f25c5ae3..55a13c675d7 100644
--- a/src/mongo/db/repl/isself_test.cpp
+++ b/src/mongo/db/repl/isself_test.cpp
@@ -33,7 +33,7 @@
#include "mongo/db/service_context.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/net/hostandport.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/scopeguard.h"
namespace mongo {
diff --git a/src/mongo/db/repl/oplog_interface_local.cpp b/src/mongo/db/repl/oplog_interface_local.cpp
index d140063b6b1..a3df8132dd4 100644
--- a/src/mongo/db/repl/oplog_interface_local.cpp
+++ b/src/mongo/db/repl/oplog_interface_local.cpp
@@ -35,7 +35,7 @@
#include "mongo/db/query/internal_plans.h"
#include "mongo/db/query/plan_executor.h"
#include "mongo/util/mongoutils/str.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
namespace mongo {
namespace repl {
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp
index 288dc66c389..1c16974ff06 100644
--- a/src/mongo/db/repl/repl_set_commands.cpp
+++ b/src/mongo/db/repl/repl_set_commands.cpp
@@ -66,7 +66,7 @@
#include "mongo/transport/transport_layer.h"
#include "mongo/util/fail_point_service.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/scopeguard.h"
namespace mongo {
diff --git a/src/mongo/db/server_options_helpers.cpp b/src/mongo/db/server_options_helpers.cpp
index 96275fb5083..578bcd6855c 100644
--- a/src/mongo/db/server_options_helpers.cpp
+++ b/src/mongo/db/server_options_helpers.cpp
@@ -55,6 +55,7 @@
#include "mongo/util/map_util.h"
#include "mongo/util/mongoutils/str.h"
#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
#include "mongo/util/net/ssl_options.h"
#include "mongo/util/options_parser/startup_options.h"
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 22d4e608a60..37e41a77ab4 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -74,6 +74,7 @@
#include "mongo/db/stats/top.h"
#include "mongo/rpc/factory.h"
#include "mongo/rpc/get_status_from_command_result.h"
+#include "mongo/rpc/message.h"
#include "mongo/rpc/metadata.h"
#include "mongo/rpc/metadata/config_server_metadata.h"
#include "mongo/rpc/metadata/logical_time_metadata.h"
@@ -81,14 +82,13 @@
#include "mongo/rpc/metadata/repl_set_metadata.h"
#include "mongo/rpc/metadata/sharding_metadata.h"
#include "mongo/rpc/metadata/tracking_metadata.h"
+#include "mongo/rpc/op_msg.h"
#include "mongo/rpc/reply_builder_interface.h"
#include "mongo/s/cannot_implicitly_create_collection_info.h"
#include "mongo/s/grid.h"
#include "mongo/s/stale_exception.h"
#include "mongo/util/fail_point_service.h"
#include "mongo/util/log.h"
-#include "mongo/util/net/message.h"
-#include "mongo/util/net/op_msg.h"
#include "mongo/util/scopeguard.h"
namespace mongo {
diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h
index cbf9905b339..ac524dbcdc6 100644
--- a/src/mongo/db/service_entry_point_common.h
+++ b/src/mongo/db/service_entry_point_common.h
@@ -34,8 +34,8 @@
#include "mongo/db/commands.h"
#include "mongo/db/dbmessage.h"
#include "mongo/db/operation_context.h"
+#include "mongo/rpc/message.h"
#include "mongo/util/fail_point_service.h"
-#include "mongo/util/net/message.h"
namespace mongo {
diff --git a/src/mongo/db/session.cpp b/src/mongo/db/session.cpp
index 5a8c1cee67c..74242fc1255 100644
--- a/src/mongo/db/session.cpp
+++ b/src/mongo/db/session.cpp
@@ -56,7 +56,7 @@
#include "mongo/util/fail_point_service.h"
#include "mongo/util/log.h"
#include "mongo/util/mongoutils/str.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
namespace mongo {
diff --git a/src/mongo/db/session_test.cpp b/src/mongo/db/session_test.cpp
index f992721decc..fc07d137576 100644
--- a/src/mongo/db/session_test.cpp
+++ b/src/mongo/db/session_test.cpp
@@ -43,7 +43,7 @@
#include "mongo/stdx/memory.h"
#include "mongo/unittest/death_test.h"
#include "mongo/unittest/unittest.h"
-#include "mongo/util/net/sock.h"
+#include "mongo/util/net/socket_utils.h"
namespace mongo {
namespace {
diff --git a/src/mongo/db/sessions_collection_sharded.cpp b/src/mongo/db/sessions_collection_sharded.cpp
index 65337bebb05..a82f8df1332 100644
--- a/src/mongo/db/sessions_collection_sharded.cpp
+++ b/src/mongo/db/sessions_collection_sharded.cpp
@@ -36,6 +36,7 @@
#include "mongo/db/query/query_request.h"
#include "mongo/db/sessions_collection_rs.h"
#include "mongo/rpc/get_status_from_command_result.h"
+#include "mongo/rpc/op_msg.h"
#include "mongo/s/catalog_cache.h"
#include "mongo/s/grid.h"
#include "mongo/s/query/cluster_find.h"
@@ -43,7 +44,6 @@
#include "mongo/s/write_ops/batched_command_request.h"
#include "mongo/s/write_ops/batched_command_response.h"
#include "mongo/s/write_ops/cluster_write.h"
-#include "mongo/util/net/op_msg.h"
namespace mongo {
diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h
index 1522da5b1aa..e5df96441b9 100644
--- a/src/mongo/db/stats/counters.h
+++ b/src/mongo/db/stats/counters.h
@@ -32,8 +32,8 @@
#include "mongo/db/jsobj.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/platform/basic.h"
+#include "mongo/rpc/message.h"
#include "mongo/util/concurrency/spin_lock.h"
-#include "mongo/util/net/message.h"
#include "mongo/util/processinfo.h"
#include "mongo/util/with_alignment.h"
diff --git a/src/mongo/db/stats/top.h b/src/mongo/db/stats/top.h
index 463482199fe..ccd4ac5e13f 100644
--- a/src/mongo/db/stats/top.h
+++ b/src/mongo/db/stats/top.h
@@ -35,7 +35,6 @@
#include "mongo/db/operation_context.h"
#include "mongo/db/stats/operation_latency_histogram.h"
#include "mongo/util/concurrency/mutex.h"
-#include "mongo/util/net/message.h"
#include "mongo/util/string_map.h"
namespace mongo {