summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-01-11 17:27:46 -0500
committerAndrew Morrow <acm@mongodb.com>2015-01-15 07:04:27 -0500
commit849e93f22089d2a2e0cdc5891037b116602cdd72 (patch)
tree234f784c6c58e80126c1fffa961ee7a9293b1248
parentd03f92f7822e46bec820c3e0d3cd39f81fc6bf80 (diff)
downloadmongo-849e93f22089d2a2e0cdc5891037b116602cdd72.tar.gz
SERVER-13256 Remove pch.h
-rw-r--r--src/mongo/base/parse_number_test.cpp3
-rw-r--r--src/mongo/client/clientAndShell.cpp3
-rw-r--r--src/mongo/client/dbclientcursor.cpp3
-rw-r--r--src/mongo/client/examples/mongoperf.cpp3
-rw-r--r--src/mongo/client/gridfs.cpp3
-rw-r--r--src/mongo/db/auth/action_set.cpp3
-rw-r--r--src/mongo/db/auth/user_cache_invalidator_job.cpp3
-rw-r--r--src/mongo/db/commands/clone.cpp3
-rw-r--r--src/mongo/db/commands/clone_collection.cpp3
-rw-r--r--src/mongo/db/commands/connection_status.cpp3
-rw-r--r--src/mongo/db/commands/copydb.cpp3
-rw-r--r--src/mongo/db/commands/copydb_start_commands.cpp3
-rw-r--r--src/mongo/db/commands/server_status.cpp3
-rw-r--r--src/mongo/db/db.h3
-rw-r--r--src/mongo/db/dbcommands_generic.cpp3
-rw-r--r--src/mongo/db/dbmessage.cpp3
-rw-r--r--src/mongo/db/dbwebserver.cpp3
-rw-r--r--src/mongo/db/driverHelpers.cpp3
-rw-r--r--src/mongo/db/fts/fts_element_iterator_test.cpp3
-rw-r--r--src/mongo/db/fts/fts_index_format.cpp3
-rw-r--r--src/mongo/db/fts/fts_index_format_test.cpp3
-rw-r--r--src/mongo/db/fts/fts_language_test.cpp3
-rw-r--r--src/mongo/db/fts/fts_matcher.cpp3
-rw-r--r--src/mongo/db/fts/fts_matcher_test.cpp3
-rw-r--r--src/mongo/db/fts/fts_query.cpp3
-rw-r--r--src/mongo/db/fts/fts_spec.cpp3
-rw-r--r--src/mongo/db/fts/fts_spec_test.cpp3
-rw-r--r--src/mongo/db/geo/hash.h3
-rw-r--r--src/mongo/db/hasher.h3
-rw-r--r--src/mongo/db/initialize_server_global_state.cpp3
-rw-r--r--src/mongo/db/introspect.cpp3
-rw-r--r--src/mongo/db/jsobj.h3
-rw-r--r--src/mongo/db/matcher/expression_geo.cpp3
-rw-r--r--src/mongo/db/matcher/expression_text.cpp3
-rw-r--r--src/mongo/db/matcher/expression_where_noop.cpp3
-rw-r--r--src/mongo/db/matcher/matchable.cpp3
-rw-r--r--src/mongo/db/matcher/matcher.cpp3
-rw-r--r--src/mongo/db/matcher/path.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator.h3
-rw-r--r--src/mongo/db/pipeline/accumulator_add_to_set.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_avg.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_first.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_last.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_min_max.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_push.cpp3
-rw-r--r--src/mongo/db/pipeline/accumulator_sum.cpp3
-rw-r--r--src/mongo/db/pipeline/dependencies.cpp3
-rw-r--r--src/mongo/db/pipeline/document.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source.h3
-rw-r--r--src/mongo/db/pipeline/document_source_bson_array.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_command_shards.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_geo_near.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_group.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_limit.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_match.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_merge_cursors.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_out.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_project.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_redact.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_skip.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_sort.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_unwind.cpp3
-rw-r--r--src/mongo/db/pipeline/expression.cpp3
-rw-r--r--src/mongo/db/pipeline/expression.h3
-rw-r--r--src/mongo/db/pipeline/field_path.cpp3
-rw-r--r--src/mongo/db/pipeline/field_path.h3
-rw-r--r--src/mongo/db/pipeline/pipeline.cpp3
-rw-r--r--src/mongo/db/pipeline/value.cpp3
-rw-r--r--src/mongo/db/projection.h3
-rw-r--r--src/mongo/db/repl/initial_sync.cpp3
-rw-r--r--src/mongo/db/repl/replset_commands.cpp3
-rw-r--r--src/mongo/db/restapi.cpp3
-rw-r--r--src/mongo/db/server_parameters.cpp3
-rw-r--r--src/mongo/db/stats/counters.cpp3
-rw-r--r--src/mongo/db/stats/counters.h3
-rw-r--r--src/mongo/db/stats/snapshots.cpp3
-rw-r--r--src/mongo/db/stats/snapshots.h3
-rw-r--r--src/mongo/db/stats/top.cpp3
-rw-r--r--src/mongo/db/storage/mmap_v1/catalog/namespace.cpp3
-rw-r--r--src/mongo/dbtests/accumulatortests.cpp3
-rw-r--r--src/mongo/dbtests/chunktests.cpp3
-rw-r--r--src/mongo/dbtests/directclienttests.cpp3
-rw-r--r--src/mongo/dbtests/documentsourcetests.cpp3
-rw-r--r--src/mongo/dbtests/documenttests.cpp3
-rw-r--r--src/mongo/dbtests/expressiontests.cpp3
-rw-r--r--src/mongo/dbtests/gridfstest.cpp3
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp3
-rw-r--r--src/mongo/dbtests/jsontests.cpp3
-rw-r--r--src/mongo/dbtests/pipelinetests.cpp3
-rw-r--r--src/mongo/dbtests/socktests.cpp3
-rw-r--r--src/mongo/dbtests/updatetests.cpp3
-rw-r--r--src/mongo/pch.h51
-rw-r--r--src/mongo/s/balance.h3
-rw-r--r--src/mongo/s/chunk_version_test.cpp3
-rw-r--r--src/mongo/s/client_info.h3
-rw-r--r--src/mongo/s/cursors.h3
-rw-r--r--src/mongo/s/default_version.cpp3
-rw-r--r--src/mongo/s/distlock.h3
-rw-r--r--src/mongo/s/request.h3
-rw-r--r--src/mongo/s/s_only.cpp3
-rw-r--r--src/mongo/s/shard.h3
-rw-r--r--src/mongo/s/shardconnection.cpp3
-rw-r--r--src/mongo/s/strategy.h3
-rw-r--r--src/mongo/s/type_chunk_test.cpp3
-rw-r--r--src/mongo/s/type_collection_test.cpp3
-rw-r--r--src/mongo/s/type_database_test.cpp3
-rw-r--r--src/mongo/s/type_shard_test.cpp3
-rw-r--r--src/mongo/scripting/v8_deadline_monitor_test.cpp3
-rw-r--r--src/mongo/shell/shell_utils_extended.cpp3
-rw-r--r--src/mongo/tools/bridge.cpp3
-rw-r--r--src/mongo/tools/sniffer.cpp3
-rw-r--r--src/mongo/unittest/unittest.cpp3
-rw-r--r--src/mongo/util/base64.cpp3
-rw-r--r--src/mongo/util/bson_util.h3
-rw-r--r--src/mongo/util/checksum.h3
-rw-r--r--src/mongo/util/concurrency/spin_lock.cpp2
-rw-r--r--src/mongo/util/concurrency/task.cpp3
-rw-r--r--src/mongo/util/concurrency/thread_pool.cpp3
-rw-r--r--src/mongo/util/file_allocator.h3
-rw-r--r--src/mongo/util/intrusive_counter.cpp3
-rw-r--r--src/mongo/util/logfile.cpp3
-rw-r--r--src/mongo/util/md5main.cpp3
-rw-r--r--src/mongo/util/mmap.cpp3
-rw-r--r--src/mongo/util/mmap_posix.cpp3
-rw-r--r--src/mongo/util/mmap_win.cpp3
-rw-r--r--src/mongo/util/net/httpclient.cpp3
-rw-r--r--src/mongo/util/net/httpclient.h3
-rw-r--r--src/mongo/util/net/message.cpp3
-rw-r--r--src/mongo/util/net/message_server.h3
-rw-r--r--src/mongo/util/net/miniwebserver.h3
-rw-r--r--src/mongo/util/password.cpp3
-rw-r--r--src/mongo/util/processinfo.cpp3
-rw-r--r--src/mongo/util/processinfo_darwin.cpp3
-rw-r--r--src/mongo/util/processinfo_none.cpp3
-rw-r--r--src/mongo/util/processinfo_win32.cpp3
-rw-r--r--src/mongo/util/progress_meter.cpp2
-rw-r--r--src/mongo/util/safe_num.cpp2
-rw-r--r--src/mongo/util/safe_num_test.cpp2
-rw-r--r--src/mongo/util/stringutils.cpp3
-rw-r--r--src/mongo/util/text_startuptest.cpp3
-rw-r--r--src/mongo/util/winutil.h1
142 files changed, 0 insertions, 468 deletions
diff --git a/src/mongo/base/parse_number_test.cpp b/src/mongo/base/parse_number_test.cpp
index d8d8ac66c9b..ecbad5086e9 100644
--- a/src/mongo/base/parse_number_test.cpp
+++ b/src/mongo/base/parse_number_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <limits>
diff --git a/src/mongo/client/clientAndShell.cpp b/src/mongo/client/clientAndShell.cpp
index 38decbc37df..259ff72468a 100644
--- a/src/mongo/client/clientAndShell.cpp
+++ b/src/mongo/client/clientAndShell.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/clientOnly-private.h"
#include "mongo/db/client_basic.h"
diff --git a/src/mongo/client/dbclientcursor.cpp b/src/mongo/client/dbclientcursor.cpp
index 48e1365d054..47152ccbe89 100644
--- a/src/mongo/client/dbclientcursor.cpp
+++ b/src/mongo/client/dbclientcursor.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/dbclientcursor.h"
diff --git a/src/mongo/client/examples/mongoperf.cpp b/src/mongo/client/examples/mongoperf.cpp
index d6d2d612eaf..6bf6c4e59ec 100644
--- a/src/mongo/client/examples/mongoperf.cpp
+++ b/src/mongo/client/examples/mongoperf.cpp
@@ -37,10 +37,7 @@
// so we define the following macro
#define MONGO_EXPOSE_MACROS 1
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <iostream>
diff --git a/src/mongo/client/gridfs.cpp b/src/mongo/client/gridfs.cpp
index 448389d446b..bc087bd5c32 100644
--- a/src/mongo/client/gridfs.cpp
+++ b/src/mongo/client/gridfs.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/gridfs.h"
diff --git a/src/mongo/db/auth/action_set.cpp b/src/mongo/db/auth/action_set.cpp
index e05727c488d..85bcc079814 100644
--- a/src/mongo/db/auth/action_set.cpp
+++ b/src/mongo/db/auth/action_set.cpp
@@ -27,10 +27,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kAccessControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/auth/action_set.h"
diff --git a/src/mongo/db/auth/user_cache_invalidator_job.cpp b/src/mongo/db/auth/user_cache_invalidator_job.cpp
index 29c312ca54b..8d9b9d7eb36 100644
--- a/src/mongo/db/auth/user_cache_invalidator_job.cpp
+++ b/src/mongo/db/auth/user_cache_invalidator_job.cpp
@@ -27,10 +27,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kAccessControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/auth/user_cache_invalidator_job.h"
diff --git a/src/mongo/db/commands/clone.cpp b/src/mongo/db/commands/clone.cpp
index 0aba60ba805..285456f6174 100644
--- a/src/mongo/db/commands/clone.cpp
+++ b/src/mongo/db/commands/clone.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/base/status.h"
diff --git a/src/mongo/db/commands/clone_collection.cpp b/src/mongo/db/commands/clone_collection.cpp
index 25f2647451f..afb048a7d4a 100644
--- a/src/mongo/db/commands/clone_collection.cpp
+++ b/src/mongo/db/commands/clone_collection.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/base/status.h"
diff --git a/src/mongo/db/commands/connection_status.cpp b/src/mongo/db/commands/connection_status.cpp
index b45fd97fa83..cfb3860b0dd 100644
--- a/src/mongo/db/commands/connection_status.cpp
+++ b/src/mongo/db/commands/connection_status.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/bson/util/bson_extract.h"
#include "mongo/db/auth/authorization_manager.h"
diff --git a/src/mongo/db/commands/copydb.cpp b/src/mongo/db/commands/copydb.cpp
index 03b4e43b1b6..29f28e305f0 100644
--- a/src/mongo/db/commands/copydb.cpp
+++ b/src/mongo/db/commands/copydb.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/base/status.h"
diff --git a/src/mongo/db/commands/copydb_start_commands.cpp b/src/mongo/db/commands/copydb_start_commands.cpp
index 9bf95923b96..56f430a5fb1 100644
--- a/src/mongo/db/commands/copydb_start_commands.cpp
+++ b/src/mongo/db/commands/copydb_start_commands.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kAccessControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/base/status.h"
diff --git a/src/mongo/db/commands/server_status.cpp b/src/mongo/db/commands/server_status.cpp
index cbe61fb104f..709142973f7 100644
--- a/src/mongo/db/commands/server_status.cpp
+++ b/src/mongo/db/commands/server_status.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/auth/action_set.h"
#include "mongo/db/auth/action_type.h"
diff --git a/src/mongo/db/db.h b/src/mongo/db/db.h
index ec8a5162a80..20385c1386a 100644
--- a/src/mongo/db/db.h
+++ b/src/mongo/db/db.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/client.h"
#include "mongo/db/curop.h"
diff --git a/src/mongo/db/dbcommands_generic.cpp b/src/mongo/db/dbcommands_generic.cpp
index 4e3a4e0b06c..02568690912 100644
--- a/src/mongo/db/dbcommands_generic.cpp
+++ b/src/mongo/db/dbcommands_generic.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <time.h>
diff --git a/src/mongo/db/dbmessage.cpp b/src/mongo/db/dbmessage.cpp
index bf38e1a94e5..95593ab545a 100644
--- a/src/mongo/db/dbmessage.cpp
+++ b/src/mongo/db/dbmessage.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/dbmessage.h"
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
index 5f4dc6b7426..36be58eefac 100644
--- a/src/mongo/db/dbwebserver.cpp
+++ b/src/mongo/db/dbwebserver.cpp
@@ -31,10 +31,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/dbwebserver.h"
diff --git a/src/mongo/db/driverHelpers.cpp b/src/mongo/db/driverHelpers.cpp
index 9c3046a57f3..f3a5cdd05e7 100644
--- a/src/mongo/db/driverHelpers.cpp
+++ b/src/mongo/db/driverHelpers.cpp
@@ -34,10 +34,7 @@
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <string>
#include <vector>
diff --git a/src/mongo/db/fts/fts_element_iterator_test.cpp b/src/mongo/db/fts/fts_element_iterator_test.cpp
index 312f9e783d7..6d5694c5990 100644
--- a/src/mongo/db/fts/fts_element_iterator_test.cpp
+++ b/src/mongo/db/fts/fts_element_iterator_test.cpp
@@ -27,10 +27,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_element_iterator.h"
#include "mongo/db/json.h"
diff --git a/src/mongo/db/fts/fts_index_format.cpp b/src/mongo/db/fts/fts_index_format.cpp
index 871f4e29d03..b2311602248 100644
--- a/src/mongo/db/fts/fts_index_format.cpp
+++ b/src/mongo/db/fts/fts_index_format.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <third_party/murmurhash3/MurmurHash3.h>
diff --git a/src/mongo/db/fts/fts_index_format_test.cpp b/src/mongo/db/fts/fts_index_format_test.cpp
index b2cba83fa9b..58d2e620b8d 100644
--- a/src/mongo/db/fts/fts_index_format_test.cpp
+++ b/src/mongo/db/fts/fts_index_format_test.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <set>
diff --git a/src/mongo/db/fts/fts_language_test.cpp b/src/mongo/db/fts/fts_language_test.cpp
index 8586bb0ae6c..0fb46ef2df7 100644
--- a/src/mongo/db/fts/fts_language_test.cpp
+++ b/src/mongo/db/fts/fts_language_test.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_language.h"
#include "mongo/db/fts/fts_spec.h"
#include "mongo/unittest/unittest.h"
diff --git a/src/mongo/db/fts/fts_matcher.cpp b/src/mongo/db/fts/fts_matcher.cpp
index e079c057a8e..e4a38726011 100644
--- a/src/mongo/db/fts/fts_matcher.cpp
+++ b/src/mongo/db/fts/fts_matcher.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_matcher.h"
#include "mongo/db/fts/fts_element_iterator.h"
diff --git a/src/mongo/db/fts/fts_matcher_test.cpp b/src/mongo/db/fts/fts_matcher_test.cpp
index 5ce321888da..0201ed4ba09 100644
--- a/src/mongo/db/fts/fts_matcher_test.cpp
+++ b/src/mongo/db/fts/fts_matcher_test.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_matcher.h"
#include "mongo/unittest/unittest.h"
diff --git a/src/mongo/db/fts/fts_query.cpp b/src/mongo/db/fts/fts_query.cpp
index 29034e3753e..82300215b45 100644
--- a/src/mongo/db/fts/fts_query.cpp
+++ b/src/mongo/db/fts/fts_query.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_query.h"
#include "mongo/db/fts/fts_spec.h"
diff --git a/src/mongo/db/fts/fts_spec.cpp b/src/mongo/db/fts/fts_spec.cpp
index 3e0cb344128..20142cbf2f5 100644
--- a/src/mongo/db/fts/fts_spec.cpp
+++ b/src/mongo/db/fts/fts_spec.cpp
@@ -27,10 +27,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_spec.h"
diff --git a/src/mongo/db/fts/fts_spec_test.cpp b/src/mongo/db/fts/fts_spec_test.cpp
index aa0d659ed4b..832279eb18d 100644
--- a/src/mongo/db/fts/fts_spec_test.cpp
+++ b/src/mongo/db/fts/fts_spec_test.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/fts/fts_spec.h"
#include "mongo/db/json.h"
diff --git a/src/mongo/db/geo/hash.h b/src/mongo/db/geo/hash.h
index f03ecc7fa3f..b50ac57d3d1 100644
--- a/src/mongo/db/geo/hash.h
+++ b/src/mongo/db/geo/hash.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
namespace mongo {
diff --git a/src/mongo/db/hasher.h b/src/mongo/db/hasher.h
index 813b1fc5770..98d6a42ee03 100644
--- a/src/mongo/db/hasher.h
+++ b/src/mongo/db/hasher.h
@@ -34,10 +34,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/noncopyable.hpp>
diff --git a/src/mongo/db/initialize_server_global_state.cpp b/src/mongo/db/initialize_server_global_state.cpp
index 7dab5365d40..91927792857 100644
--- a/src/mongo/db/initialize_server_global_state.cpp
+++ b/src/mongo/db/initialize_server_global_state.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/initialize_server_global_state.h"
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp
index eb6588c06ef..890836e6c2f 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/scoped_ptr.hpp>
diff --git a/src/mongo/db/jsobj.h b/src/mongo/db/jsobj.h
index 23f3c873f4d..de16b723e35 100644
--- a/src/mongo/db/jsobj.h
+++ b/src/mongo/db/jsobj.h
@@ -40,10 +40,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/bson/util/builder.h"
#include "mongo/bson/optime.h"
diff --git a/src/mongo/db/matcher/expression_geo.cpp b/src/mongo/db/matcher/expression_geo.cpp
index a1b7229c4d4..7aa3622a545 100644
--- a/src/mongo/db/matcher/expression_geo.cpp
+++ b/src/mongo/db/matcher/expression_geo.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/matcher/expression_geo.h"
#include "mongo/db/geo/geoparser.h"
#include "mongo/util/mongoutils/str.h"
diff --git a/src/mongo/db/matcher/expression_text.cpp b/src/mongo/db/matcher/expression_text.cpp
index 760491b97c5..3754d431f57 100644
--- a/src/mongo/db/matcher/expression_text.cpp
+++ b/src/mongo/db/matcher/expression_text.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/matcher/expression_text.h"
namespace mongo {
diff --git a/src/mongo/db/matcher/expression_where_noop.cpp b/src/mongo/db/matcher/expression_where_noop.cpp
index af1fed42521..663097ba13b 100644
--- a/src/mongo/db/matcher/expression_where_noop.cpp
+++ b/src/mongo/db/matcher/expression_where_noop.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/db/matcher/expression.h"
#include "mongo/db/matcher/expression_parser.h"
diff --git a/src/mongo/db/matcher/matchable.cpp b/src/mongo/db/matcher/matchable.cpp
index a8ef808c60e..b28f78f5ecf 100644
--- a/src/mongo/db/matcher/matchable.cpp
+++ b/src/mongo/db/matcher/matchable.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/matcher/matchable.h"
diff --git a/src/mongo/db/matcher/matcher.cpp b/src/mongo/db/matcher/matcher.cpp
index 57998f79caf..7b7f844b822 100644
--- a/src/mongo/db/matcher/matcher.cpp
+++ b/src/mongo/db/matcher/matcher.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/db/jsobj.h"
diff --git a/src/mongo/db/matcher/path.cpp b/src/mongo/db/matcher/path.cpp
index 73e2b84b3e8..a091fa92062 100644
--- a/src/mongo/db/matcher/path.cpp
+++ b/src/mongo/db/matcher/path.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/matcher/path_internal.h"
#include "mongo/db/matcher/path.h"
diff --git a/src/mongo/db/pipeline/accumulator.h b/src/mongo/db/pipeline/accumulator.h
index 7782f7fa0c2..c0e54e434ec 100644
--- a/src/mongo/db/pipeline/accumulator.h
+++ b/src/mongo/db/pipeline/accumulator.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/intrusive_ptr.hpp>
#include <boost/unordered_set.hpp>
diff --git a/src/mongo/db/pipeline/accumulator_add_to_set.cpp b/src/mongo/db/pipeline/accumulator_add_to_set.cpp
index 81ad8e85679..a15ac08d831 100644
--- a/src/mongo/db/pipeline/accumulator_add_to_set.cpp
+++ b/src/mongo/db/pipeline/accumulator_add_to_set.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/expression_context.h"
diff --git a/src/mongo/db/pipeline/accumulator_avg.cpp b/src/mongo/db/pipeline/accumulator_avg.cpp
index ef1e98cb44c..6378dac13e8 100644
--- a/src/mongo/db/pipeline/accumulator_avg.cpp
+++ b/src/mongo/db/pipeline/accumulator_avg.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/accumulator_first.cpp b/src/mongo/db/pipeline/accumulator_first.cpp
index 3b2c292f913..ed49fe163f1 100644
--- a/src/mongo/db/pipeline/accumulator_first.cpp
+++ b/src/mongo/db/pipeline/accumulator_first.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/value.h"
diff --git a/src/mongo/db/pipeline/accumulator_last.cpp b/src/mongo/db/pipeline/accumulator_last.cpp
index 91b58c7a74c..4b24cf828b7 100644
--- a/src/mongo/db/pipeline/accumulator_last.cpp
+++ b/src/mongo/db/pipeline/accumulator_last.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/value.h"
diff --git a/src/mongo/db/pipeline/accumulator_min_max.cpp b/src/mongo/db/pipeline/accumulator_min_max.cpp
index 81fcb7a5eec..f7d17f2db09 100644
--- a/src/mongo/db/pipeline/accumulator_min_max.cpp
+++ b/src/mongo/db/pipeline/accumulator_min_max.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/value.h"
diff --git a/src/mongo/db/pipeline/accumulator_push.cpp b/src/mongo/db/pipeline/accumulator_push.cpp
index b474acc940d..e7a2b6b5514 100644
--- a/src/mongo/db/pipeline/accumulator_push.cpp
+++ b/src/mongo/db/pipeline/accumulator_push.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/expression_context.h"
diff --git a/src/mongo/db/pipeline/accumulator_sum.cpp b/src/mongo/db/pipeline/accumulator_sum.cpp
index 90c11d85046..9076a324dfa 100644
--- a/src/mongo/db/pipeline/accumulator_sum.cpp
+++ b/src/mongo/db/pipeline/accumulator_sum.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/value.h"
diff --git a/src/mongo/db/pipeline/dependencies.cpp b/src/mongo/db/pipeline/dependencies.cpp
index 063ac83725d..dc28ee18ebd 100644
--- a/src/mongo/db/pipeline/dependencies.cpp
+++ b/src/mongo/db/pipeline/dependencies.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/pipeline/dependencies.h"
diff --git a/src/mongo/db/pipeline/document.cpp b/src/mongo/db/pipeline/document.cpp
index 432a15f55c8..a6b9c43c997 100644
--- a/src/mongo/db/pipeline/document.cpp
+++ b/src/mongo/db/pipeline/document.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/document_source.cpp b/src/mongo/db/pipeline/document_source.cpp
index d26cc5b1014..c1483f7e5a1 100644
--- a/src/mongo/db/pipeline/document_source.cpp
+++ b/src/mongo/db/pipeline/document_source.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
#include "mongo/db/pipeline/expression_context.h"
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h
index 5d7e13cfbfb..cb838d55929 100644
--- a/src/mongo/db/pipeline/document_source.h
+++ b/src/mongo/db/pipeline/document_source.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/optional.hpp>
#include <boost/intrusive_ptr.hpp>
diff --git a/src/mongo/db/pipeline/document_source_bson_array.cpp b/src/mongo/db/pipeline/document_source_bson_array.cpp
index f2bca6e5517..ca3e56e65d1 100644
--- a/src/mongo/db/pipeline/document_source_bson_array.cpp
+++ b/src/mongo/db/pipeline/document_source_bson_array.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document.h"
#include "mongo/db/pipeline/document_source.h"
diff --git a/src/mongo/db/pipeline/document_source_command_shards.cpp b/src/mongo/db/pipeline/document_source_command_shards.cpp
index 12a12defd29..d48da244e97 100644
--- a/src/mongo/db/pipeline/document_source_command_shards.cpp
+++ b/src/mongo/db/pipeline/document_source_command_shards.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
#include "mongo/s/shard.h"
diff --git a/src/mongo/db/pipeline/document_source_geo_near.cpp b/src/mongo/db/pipeline/document_source_geo_near.cpp
index b9615e87abe..87b67c036a7 100644
--- a/src/mongo/db/pipeline/document_source_geo_near.cpp
+++ b/src/mongo/db/pipeline/document_source_geo_near.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/document_source_group.cpp b/src/mongo/db/pipeline/document_source_group.cpp
index b5a4443f609..94268d6f401 100644
--- a/src/mongo/db/pipeline/document_source_group.cpp
+++ b/src/mongo/db/pipeline/document_source_group.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
diff --git a/src/mongo/db/pipeline/document_source_limit.cpp b/src/mongo/db/pipeline/document_source_limit.cpp
index 7f8fc3cbe3e..1789b689eda 100644
--- a/src/mongo/db/pipeline/document_source_limit.cpp
+++ b/src/mongo/db/pipeline/document_source_limit.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/document_source_match.cpp b/src/mongo/db/pipeline/document_source_match.cpp
index 95b707e949a..8b3f614e7ae 100644
--- a/src/mongo/db/pipeline/document_source_match.cpp
+++ b/src/mongo/db/pipeline/document_source_match.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <cctype>
diff --git a/src/mongo/db/pipeline/document_source_merge_cursors.cpp b/src/mongo/db/pipeline/document_source_merge_cursors.cpp
index d5d3ce1bf1e..ece870358f7 100644
--- a/src/mongo/db/pipeline/document_source_merge_cursors.cpp
+++ b/src/mongo/db/pipeline/document_source_merge_cursors.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
diff --git a/src/mongo/db/pipeline/document_source_out.cpp b/src/mongo/db/pipeline/document_source_out.cpp
index b046ebe8d53..93f109e7cff 100644
--- a/src/mongo/db/pipeline/document_source_out.cpp
+++ b/src/mongo/db/pipeline/document_source_out.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
diff --git a/src/mongo/db/pipeline/document_source_project.cpp b/src/mongo/db/pipeline/document_source_project.cpp
index 78e661f44ff..6ff9ccefbb2 100644
--- a/src/mongo/db/pipeline/document_source_project.cpp
+++ b/src/mongo/db/pipeline/document_source_project.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/smart_ptr.hpp>
diff --git a/src/mongo/db/pipeline/document_source_redact.cpp b/src/mongo/db/pipeline/document_source_redact.cpp
index 21046432156..9447a9e4fa2 100644
--- a/src/mongo/db/pipeline/document_source_redact.cpp
+++ b/src/mongo/db/pipeline/document_source_redact.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
diff --git a/src/mongo/db/pipeline/document_source_skip.cpp b/src/mongo/db/pipeline/document_source_skip.cpp
index 2e9d0df88ae..aad37101613 100644
--- a/src/mongo/db/pipeline/document_source_skip.cpp
+++ b/src/mongo/db/pipeline/document_source_skip.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/document_source_sort.cpp b/src/mongo/db/pipeline/document_source_sort.cpp
index 0a1ea7a82bf..9768a44b84d 100644
--- a/src/mongo/db/pipeline/document_source_sort.cpp
+++ b/src/mongo/db/pipeline/document_source_sort.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document_source.h"
diff --git a/src/mongo/db/pipeline/document_source_unwind.cpp b/src/mongo/db/pipeline/document_source_unwind.cpp
index b94a15e4e2d..11c8d0880ec 100644
--- a/src/mongo/db/pipeline/document_source_unwind.cpp
+++ b/src/mongo/db/pipeline/document_source_unwind.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp
index 5d61245b8ec..376032da8d5 100644
--- a/src/mongo/db/pipeline/expression.cpp
+++ b/src/mongo/db/pipeline/expression.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/expression.h"
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h
index d922cd4c72c..46caaa5f821 100644
--- a/src/mongo/db/pipeline/expression.h
+++ b/src/mongo/db/pipeline/expression.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/intrusive_ptr.hpp>
diff --git a/src/mongo/db/pipeline/field_path.cpp b/src/mongo/db/pipeline/field_path.cpp
index d68bc2e2fc7..49115178a02 100644
--- a/src/mongo/db/pipeline/field_path.cpp
+++ b/src/mongo/db/pipeline/field_path.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/field_path.h"
diff --git a/src/mongo/db/pipeline/field_path.h b/src/mongo/db/pipeline/field_path.h
index 4bbf3965991..f400ca421ce 100644
--- a/src/mongo/db/pipeline/field_path.h
+++ b/src/mongo/db/pipeline/field_path.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/assert_util.h"
namespace mongo {
diff --git a/src/mongo/db/pipeline/pipeline.cpp b/src/mongo/db/pipeline/pipeline.cpp
index 6b38dec714d..e654239bafc 100644
--- a/src/mongo/db/pipeline/pipeline.cpp
+++ b/src/mongo/db/pipeline/pipeline.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
// This file defines functions from both of these headers
#include "mongo/db/pipeline/pipeline.h"
diff --git a/src/mongo/db/pipeline/value.cpp b/src/mongo/db/pipeline/value.cpp
index 9077c49b5d6..16d8cf5608d 100644
--- a/src/mongo/db/pipeline/value.cpp
+++ b/src/mongo/db/pipeline/value.cpp
@@ -26,10 +26,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/value.h"
diff --git a/src/mongo/db/projection.h b/src/mongo/db/projection.h
index 964f6e5fdd0..b9424cec3e9 100644
--- a/src/mongo/db/projection.h
+++ b/src/mongo/db/projection.h
@@ -29,10 +29,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/shared_ptr.hpp>
diff --git a/src/mongo/db/repl/initial_sync.cpp b/src/mongo/db/repl/initial_sync.cpp
index 3f482e19183..61729f92139 100644
--- a/src/mongo/db/repl/initial_sync.cpp
+++ b/src/mongo/db/repl/initial_sync.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kReplication
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/repl/initial_sync.h"
diff --git a/src/mongo/db/repl/replset_commands.cpp b/src/mongo/db/repl/replset_commands.cpp
index a46ab9b474b..6c2d076eb61 100644
--- a/src/mongo/db/repl/replset_commands.cpp
+++ b/src/mongo/db/repl/replset_commands.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/repl/replset_commands.h"
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp
index db6f7b6db7e..6a167963d4f 100644
--- a/src/mongo/db/restapi.cpp
+++ b/src/mongo/db/restapi.cpp
@@ -31,10 +31,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/restapi.h"
diff --git a/src/mongo/db/server_parameters.cpp b/src/mongo/db/server_parameters.cpp
index f57c8750678..0aeef5b4a42 100644
--- a/src/mongo/db/server_parameters.cpp
+++ b/src/mongo/db/server_parameters.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/parse_number.h"
#include "mongo/client/replica_set_monitor.h"
diff --git a/src/mongo/db/stats/counters.cpp b/src/mongo/db/stats/counters.cpp
index a35fc14b70c..51330b9d647 100644
--- a/src/mongo/db/stats/counters.cpp
+++ b/src/mongo/db/stats/counters.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/stats/counters.h"
diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h
index 97e85020a2c..b29ebcce618 100644
--- a/src/mongo/db/stats/counters.h
+++ b/src/mongo/db/stats/counters.h
@@ -29,10 +29,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/util/net/message.h"
diff --git a/src/mongo/db/stats/snapshots.cpp b/src/mongo/db/stats/snapshots.cpp
index f36bce434c2..b44ef9812f6 100644
--- a/src/mongo/db/stats/snapshots.cpp
+++ b/src/mongo/db/stats/snapshots.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/stats/snapshots.h"
diff --git a/src/mongo/db/stats/snapshots.h b/src/mongo/db/stats/snapshots.h
index b00fbb3aee6..59240c9bfea 100644
--- a/src/mongo/db/stats/snapshots.h
+++ b/src/mongo/db/stats/snapshots.h
@@ -29,10 +29,7 @@
*/
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "top.h"
#include "mongo/util/background.h"
diff --git a/src/mongo/db/stats/top.cpp b/src/mongo/db/stats/top.cpp
index a95f1ae7dc6..fd3f9addedf 100644
--- a/src/mongo/db/stats/top.cpp
+++ b/src/mongo/db/stats/top.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/stats/top.h"
diff --git a/src/mongo/db/storage/mmap_v1/catalog/namespace.cpp b/src/mongo/db/storage/mmap_v1/catalog/namespace.cpp
index 92044109854..374761fe386 100644
--- a/src/mongo/db/storage/mmap_v1/catalog/namespace.cpp
+++ b/src/mongo/db/storage/mmap_v1/catalog/namespace.cpp
@@ -28,10 +28,7 @@
* it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/storage/mmap_v1/catalog/namespace.h"
diff --git a/src/mongo/dbtests/accumulatortests.cpp b/src/mongo/dbtests/accumulatortests.cpp
index ccc334d0095..f57bbfcd787 100644
--- a/src/mongo/dbtests/accumulatortests.cpp
+++ b/src/mongo/dbtests/accumulatortests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/accumulator.h"
#include "mongo/db/pipeline/document.h"
diff --git a/src/mongo/dbtests/chunktests.cpp b/src/mongo/dbtests/chunktests.cpp
index 82862c6cfe8..0f44ff7a856 100644
--- a/src/mongo/dbtests/chunktests.cpp
+++ b/src/mongo/dbtests/chunktests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/json.h"
#include "mongo/dbtests/dbtests.h"
diff --git a/src/mongo/dbtests/directclienttests.cpp b/src/mongo/dbtests/directclienttests.cpp
index 2c79c26a082..822db3b58f4 100644
--- a/src/mongo/dbtests/directclienttests.cpp
+++ b/src/mongo/dbtests/directclienttests.cpp
@@ -29,10 +29,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <iostream>
diff --git a/src/mongo/dbtests/documentsourcetests.cpp b/src/mongo/dbtests/documentsourcetests.cpp
index 059c48fe62d..fc15e8937e6 100644
--- a/src/mongo/dbtests/documentsourcetests.cpp
+++ b/src/mongo/dbtests/documentsourcetests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/shared_ptr.hpp>
#include <boost/thread/thread.hpp>
diff --git a/src/mongo/dbtests/documenttests.cpp b/src/mongo/dbtests/documenttests.cpp
index c525cd412ad..acd5de74446 100644
--- a/src/mongo/dbtests/documenttests.cpp
+++ b/src/mongo/dbtests/documenttests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document.h"
#include "mongo/db/pipeline/field_path.h"
diff --git a/src/mongo/dbtests/expressiontests.cpp b/src/mongo/dbtests/expressiontests.cpp
index ae160fa5f6a..a1c9fd3a7e1 100644
--- a/src/mongo/dbtests/expressiontests.cpp
+++ b/src/mongo/dbtests/expressiontests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document.h"
#include "mongo/db/pipeline/expression.h"
diff --git a/src/mongo/dbtests/gridfstest.cpp b/src/mongo/dbtests/gridfstest.cpp
index b6745ace73b..ec8fde0c59b 100644
--- a/src/mongo/dbtests/gridfstest.cpp
+++ b/src/mongo/dbtests/gridfstest.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/gridfs.h"
#include "mongo/db/dbdirectclient.h"
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index 4ffab7c0f41..401f4648c80 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -31,10 +31,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <iostream>
diff --git a/src/mongo/dbtests/jsontests.cpp b/src/mongo/dbtests/jsontests.cpp
index 5ea9cab5b81..7d407d7ecd0 100644
--- a/src/mongo/dbtests/jsontests.cpp
+++ b/src/mongo/dbtests/jsontests.cpp
@@ -31,10 +31,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <limits>
diff --git a/src/mongo/dbtests/pipelinetests.cpp b/src/mongo/dbtests/pipelinetests.cpp
index 17b226ff061..8a1b106279f 100644
--- a/src/mongo/dbtests/pipelinetests.cpp
+++ b/src/mongo/dbtests/pipelinetests.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/pipeline/document.h"
#include "mongo/db/pipeline/expression_context.h"
diff --git a/src/mongo/dbtests/socktests.cpp b/src/mongo/dbtests/socktests.cpp
index e2997700f40..a4563d47ed8 100644
--- a/src/mongo/dbtests/socktests.cpp
+++ b/src/mongo/dbtests/socktests.cpp
@@ -29,10 +29,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/repl/isself.h"
#include "mongo/dbtests/dbtests.h"
diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp
index 1b579f1c0c6..4d2f527c54a 100644
--- a/src/mongo/dbtests/updatetests.cpp
+++ b/src/mongo/dbtests/updatetests.cpp
@@ -29,10 +29,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <iostream>
diff --git a/src/mongo/pch.h b/src/mongo/pch.h
deleted file mode 100644
index 8a4d54fb9a9..00000000000
--- a/src/mongo/pch.h
+++ /dev/null
@@ -1,51 +0,0 @@
- /** @file pch.h : include file for standard system include files,
- * or project specific include files that are used frequently, but
- * are changed infrequently
- */
-
-/* Copyright 2009 10gen Inc.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * As a special exception, the copyright holders give permission to link the
- * code of portions of this program with the OpenSSL library under certain
- * conditions as described in each individual source file and distribute
- * linked combinations including the program with the OpenSSL library. You
- * must comply with the GNU Affero General Public License in all respects
- * for all of the code used other than as permitted herein. If you modify
- * file(s) with this exception, you may extend this exception to your
- * version of the file(s), but you are not obligated to do so. If you do not
- * wish to do so, delete this exception statement from your version. If you
- * delete this exception statement from all source files in the program,
- * then also delete it in the license file.
- */
-
-#ifndef MONGO_PCH_H
-#define MONGO_PCH_H
-
-// NOTE: New uses of pch.h are prohibited, if the following error triggers for you, do *not*
-// work around it by defining MONGO_PCH_WHITELISTED. Instead, include-what-you-use for standard
-// library headers, and namespace qualify things from the standard library in headers.
-#ifndef MONGO_PCH_WHITELISTED
-#error New uses of mongo/pch.h are prohibited
-#endif
-
-// our #define macros must not be active when we include
-// system headers and boost headers
-#include "mongo/client/undef_macros.h"
-
-#define BOOST_FILESYSTEM_VERSION 3
-
-#include "mongo/client/redef_macros.h"
-
-#endif // MONGO_PCH_H
diff --git a/src/mongo/s/balance.h b/src/mongo/s/balance.h
index 57f42adbaa5..8ed8662b5a9 100644
--- a/src/mongo/s/balance.h
+++ b/src/mongo/s/balance.h
@@ -30,10 +30,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
diff --git a/src/mongo/s/chunk_version_test.cpp b/src/mongo/s/chunk_version_test.cpp
index 7c6cb0c796d..07f2b54f883 100644
--- a/src/mongo/s/chunk_version_test.cpp
+++ b/src/mongo/s/chunk_version_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/jsobj.h"
#include "mongo/s/chunk_version.h"
diff --git a/src/mongo/s/client_info.h b/src/mongo/s/client_info.h
index 9dfdb2ef504..f1d750733c8 100644
--- a/src/mongo/s/client_info.h
+++ b/src/mongo/s/client_info.h
@@ -29,10 +29,7 @@
*/
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <map>
#include <set>
diff --git a/src/mongo/s/cursors.h b/src/mongo/s/cursors.h
index f72656f6612..43e7908103b 100644
--- a/src/mongo/s/cursors.h
+++ b/src/mongo/s/cursors.h
@@ -30,10 +30,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
diff --git a/src/mongo/s/default_version.cpp b/src/mongo/s/default_version.cpp
index fd9657a76ac..e5fcd65221f 100644
--- a/src/mongo/s/default_version.cpp
+++ b/src/mongo/s/default_version.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/s/version_manager.h"
diff --git a/src/mongo/s/distlock.h b/src/mongo/s/distlock.h
index 58f7cd7d76e..4ce30222068 100644
--- a/src/mongo/s/distlock.h
+++ b/src/mongo/s/distlock.h
@@ -29,10 +29,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/connpool.h"
#include "mongo/client/export_macros.h"
#include "mongo/client/syncclusterconnection.h"
diff --git a/src/mongo/s/request.h b/src/mongo/s/request.h
index 875bd848a24..e315505febc 100644
--- a/src/mongo/s/request.h
+++ b/src/mongo/s/request.h
@@ -30,10 +30,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index e203cf23e6e..fcd923c964b 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kSharding
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/client/connpool.h"
#include "mongo/db/auth/authorization_manager.h"
diff --git a/src/mongo/s/shard.h b/src/mongo/s/shard.h
index 7f1f6ffadae..ab49f272da7 100644
--- a/src/mongo/s/shard.h
+++ b/src/mongo/s/shard.h
@@ -30,10 +30,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/shared_ptr.hpp>
diff --git a/src/mongo/s/shardconnection.cpp b/src/mongo/s/shardconnection.cpp
index 1500553a60a..daba02eb2f7 100644
--- a/src/mongo/s/shardconnection.cpp
+++ b/src/mongo/s/shardconnection.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kSharding
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/noncopyable.hpp>
#include <set>
diff --git a/src/mongo/s/strategy.h b/src/mongo/s/strategy.h
index 48fb22619b4..11d2c9059d3 100644
--- a/src/mongo/s/strategy.h
+++ b/src/mongo/s/strategy.h
@@ -30,10 +30,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "chunk.h"
#include "request.h"
diff --git a/src/mongo/s/type_chunk_test.cpp b/src/mongo/s/type_chunk_test.cpp
index ef20e780f4e..eed9f872948 100644
--- a/src/mongo/s/type_chunk_test.cpp
+++ b/src/mongo/s/type_chunk_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/bson/oid.h"
#include "mongo/s/chunk_version.h"
diff --git a/src/mongo/s/type_collection_test.cpp b/src/mongo/s/type_collection_test.cpp
index 998155bf405..843b19d71f8 100644
--- a/src/mongo/s/type_collection_test.cpp
+++ b/src/mongo/s/type_collection_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/bson/oid.h"
#include "mongo/s/type_collection.h"
diff --git a/src/mongo/s/type_database_test.cpp b/src/mongo/s/type_database_test.cpp
index 07ad92ce320..278ed727a71 100644
--- a/src/mongo/s/type_database_test.cpp
+++ b/src/mongo/s/type_database_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/bson/oid.h"
#include "mongo/db/field_parser.h"
diff --git a/src/mongo/s/type_shard_test.cpp b/src/mongo/s/type_shard_test.cpp
index 9a2b70af298..9c1f0fe3623 100644
--- a/src/mongo/s/type_shard_test.cpp
+++ b/src/mongo/s/type_shard_test.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/s/type_shard.h"
#include "mongo/unittest/unittest.h"
diff --git a/src/mongo/scripting/v8_deadline_monitor_test.cpp b/src/mongo/scripting/v8_deadline_monitor_test.cpp
index 4a9fe5a966d..1ad95d63816 100644
--- a/src/mongo/scripting/v8_deadline_monitor_test.cpp
+++ b/src/mongo/scripting/v8_deadline_monitor_test.cpp
@@ -28,10 +28,7 @@
// DeadlineMonitor unit tests
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/scripting/v8_deadline_monitor.h"
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
index 466c64940c2..221d91b79fd 100644
--- a/src/mongo/shell/shell_utils_extended.cpp
+++ b/src/mongo/shell/shell_utils_extended.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/filesystem/convenience.hpp>
#include <fstream>
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index ecec37ff187..a2f72bf4ac5 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/thread.hpp>
#include <iostream>
diff --git a/src/mongo/tools/sniffer.cpp b/src/mongo/tools/sniffer.cpp
index 92b07659e8b..09a5b229107 100644
--- a/src/mongo/tools/sniffer.cpp
+++ b/src/mongo/tools/sniffer.cpp
@@ -36,10 +36,7 @@
killcursors
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#ifdef _WIN32
#undef min
diff --git a/src/mongo/unittest/unittest.cpp b/src/mongo/unittest/unittest.cpp
index 70bb590a3d1..5085a320972 100644
--- a/src/mongo/unittest/unittest.cpp
+++ b/src/mongo/unittest/unittest.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/unittest/unittest.h"
diff --git a/src/mongo/util/base64.cpp b/src/mongo/util/base64.cpp
index 04216eb0b64..961e43ed113 100644
--- a/src/mongo/util/base64.cpp
+++ b/src/mongo/util/base64.cpp
@@ -28,10 +28,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/base64.h"
diff --git a/src/mongo/util/bson_util.h b/src/mongo/util/bson_util.h
index db873bdfd45..b1f310f57ee 100644
--- a/src/mongo/util/bson_util.h
+++ b/src/mongo/util/bson_util.h
@@ -29,10 +29,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
namespace mongo {
diff --git a/src/mongo/util/checksum.h b/src/mongo/util/checksum.h
index 606c0eb8220..209b508cbdd 100644
--- a/src/mongo/util/checksum.h
+++ b/src/mongo/util/checksum.h
@@ -28,10 +28,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
namespace mongo {
/** a simple, rather dumb, but very fast checksum. see perftests.cpp for unit tests. */
diff --git a/src/mongo/util/concurrency/spin_lock.cpp b/src/mongo/util/concurrency/spin_lock.cpp
index f7f897f2140..6b52f4b727f 100644
--- a/src/mongo/util/concurrency/spin_lock.cpp
+++ b/src/mongo/util/concurrency/spin_lock.cpp
@@ -27,9 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
#undef MONGO_PCH_WHITELISTED // todo eliminate this include
#include "mongo/util/concurrency/spin_lock.h"
diff --git a/src/mongo/util/concurrency/task.cpp b/src/mongo/util/concurrency/task.cpp
index a991334c479..68b439ec31f 100644
--- a/src/mongo/util/concurrency/task.cpp
+++ b/src/mongo/util/concurrency/task.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/thread/condition.hpp>
#include <iostream>
diff --git a/src/mongo/util/concurrency/thread_pool.cpp b/src/mongo/util/concurrency/thread_pool.cpp
index bb01bc4c6d2..2f16d4e5fa4 100644
--- a/src/mongo/util/concurrency/thread_pool.cpp
+++ b/src/mongo/util/concurrency/thread_pool.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/concurrency/thread_pool.h"
diff --git a/src/mongo/util/file_allocator.h b/src/mongo/util/file_allocator.h
index b5fd36619a1..aabe2a368bf 100644
--- a/src/mongo/util/file_allocator.h
+++ b/src/mongo/util/file_allocator.h
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <list>
#include <boost/filesystem/path.hpp>
diff --git a/src/mongo/util/intrusive_counter.cpp b/src/mongo/util/intrusive_counter.cpp
index b53cb5e9cc4..64bc61884c3 100644
--- a/src/mongo/util/intrusive_counter.cpp
+++ b/src/mongo/util/intrusive_counter.cpp
@@ -26,10 +26,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/intrusive_counter.h"
diff --git a/src/mongo/util/logfile.cpp b/src/mongo/util/logfile.cpp
index 5e8f185bc4c..db9a0aa9a0b 100644
--- a/src/mongo/util/logfile.cpp
+++ b/src/mongo/util/logfile.cpp
@@ -30,10 +30,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/logfile.h"
diff --git a/src/mongo/util/md5main.cpp b/src/mongo/util/md5main.cpp
index d11f35483c8..733b631339b 100644
--- a/src/mongo/util/md5main.cpp
+++ b/src/mongo/util/md5main.cpp
@@ -40,10 +40,7 @@
2002-04-13 lpd Splits off main program into a separate file, md5main.c.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <math.h>
#include <stdio.h>
diff --git a/src/mongo/util/mmap.cpp b/src/mongo/util/mmap.cpp
index 6ccadbe7f6d..0f112e63c18 100644
--- a/src/mongo/util/mmap.cpp
+++ b/src/mongo/util/mmap.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/mmap.h"
diff --git a/src/mongo/util/mmap_posix.cpp b/src/mongo/util/mmap_posix.cpp
index 8d9f2a11caf..6236962a9d8 100644
--- a/src/mongo/util/mmap_posix.cpp
+++ b/src/mongo/util/mmap_posix.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <errno.h>
#include <fcntl.h>
diff --git a/src/mongo/util/mmap_win.cpp b/src/mongo/util/mmap_win.cpp
index c40bf9a876e..8ce10b5241e 100644
--- a/src/mongo/util/mmap_win.cpp
+++ b/src/mongo/util/mmap_win.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/db/concurrency/d_concurrency.h"
#include "mongo/db/storage/mmap_v1/durable_mapped_file.h"
diff --git a/src/mongo/util/net/httpclient.cpp b/src/mongo/util/net/httpclient.cpp
index ecea9bbba56..afb059f4d78 100644
--- a/src/mongo/util/net/httpclient.cpp
+++ b/src/mongo/util/net/httpclient.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/net/httpclient.h"
diff --git a/src/mongo/util/net/httpclient.h b/src/mongo/util/net/httpclient.h
index a78943df2a2..df378ed6180 100644
--- a/src/mongo/util/net/httpclient.h
+++ b/src/mongo/util/net/httpclient.h
@@ -30,10 +30,7 @@
#pragma once
#include "mongo/client/export_macros.h"
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/noncopyable.hpp>
#include <map>
diff --git a/src/mongo/util/net/message.cpp b/src/mongo/util/net/message.cpp
index 88fa214d169..4d68aa01177 100644
--- a/src/mongo/util/net/message.cpp
+++ b/src/mongo/util/net/message.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/net/message.h"
diff --git a/src/mongo/util/net/message_server.h b/src/mongo/util/net/message_server.h
index 953174db6bc..384a0fea5b7 100644
--- a/src/mongo/util/net/message_server.h
+++ b/src/mongo/util/net/message_server.h
@@ -34,10 +34,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
namespace mongo {
diff --git a/src/mongo/util/net/miniwebserver.h b/src/mongo/util/net/miniwebserver.h
index 3563dac5139..6ae82f90966 100644
--- a/src/mongo/util/net/miniwebserver.h
+++ b/src/mongo/util/net/miniwebserver.h
@@ -29,10 +29,7 @@
#pragma once
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/shared_ptr.hpp>
diff --git a/src/mongo/util/password.cpp b/src/mongo/util/password.cpp
index 65b7e8579b6..2c0eeb02a89 100644
--- a/src/mongo/util/password.cpp
+++ b/src/mongo/util/password.cpp
@@ -28,10 +28,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/password.h"
diff --git a/src/mongo/util/processinfo.cpp b/src/mongo/util/processinfo.cpp
index ef04a6d7afe..53e954d44da 100644
--- a/src/mongo/util/processinfo.cpp
+++ b/src/mongo/util/processinfo.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/base/init.h"
#include "mongo/util/processinfo.h"
diff --git a/src/mongo/util/processinfo_darwin.cpp b/src/mongo/util/processinfo_darwin.cpp
index 98323663f9f..a88aadbbd34 100644
--- a/src/mongo/util/processinfo_darwin.cpp
+++ b/src/mongo/util/processinfo_darwin.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/processinfo.h"
#include "mongo/util/log.h"
#include "mongo/db/jsobj.h"
diff --git a/src/mongo/util/processinfo_none.cpp b/src/mongo/util/processinfo_none.cpp
index 0e67f34362f..8d4216971a3 100644
--- a/src/mongo/util/processinfo_none.cpp
+++ b/src/mongo/util/processinfo_none.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <iostream>
diff --git a/src/mongo/util/processinfo_win32.cpp b/src/mongo/util/processinfo_win32.cpp
index 7edbd649713..1747b980225 100644
--- a/src/mongo/util/processinfo_win32.cpp
+++ b/src/mongo/util/processinfo_win32.cpp
@@ -29,10 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kControl
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include <boost/scoped_array.hpp>
#include <iostream>
diff --git a/src/mongo/util/progress_meter.cpp b/src/mongo/util/progress_meter.cpp
index 7b57d76f0e0..df065285a54 100644
--- a/src/mongo/util/progress_meter.cpp
+++ b/src/mongo/util/progress_meter.cpp
@@ -29,9 +29,7 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
#undef MONGO_PCH_WHITELISTED // needed for log.h
#include "mongo/util/progress_meter.h"
diff --git a/src/mongo/util/safe_num.cpp b/src/mongo/util/safe_num.cpp
index d6f7f99a3da..cb5d8500961 100644
--- a/src/mongo/util/safe_num.cpp
+++ b/src/mongo/util/safe_num.cpp
@@ -28,9 +28,7 @@
#include <sstream>
#include <boost/static_assert.hpp>
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
#undef MONGO_PCH_WHITELISTED // for malloc/realloc/INFINITY pulled from bson
#include "mongo/bson/bsontypes.h"
diff --git a/src/mongo/util/safe_num_test.cpp b/src/mongo/util/safe_num_test.cpp
index f1553262496..7741f102bf2 100644
--- a/src/mongo/util/safe_num_test.cpp
+++ b/src/mongo/util/safe_num_test.cpp
@@ -27,9 +27,7 @@
#include <limits>
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
#undef MONGO_PCH_WHITELISTED // for malloc/realloc pulled from bson
#include "mongo/bson/bsontypes.h"
diff --git a/src/mongo/util/stringutils.cpp b/src/mongo/util/stringutils.cpp
index 85c7e8c3a87..2ea6dd41a91 100644
--- a/src/mongo/util/stringutils.cpp
+++ b/src/mongo/util/stringutils.cpp
@@ -27,10 +27,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/stringutils.h"
diff --git a/src/mongo/util/text_startuptest.cpp b/src/mongo/util/text_startuptest.cpp
index 3fc9398f4ea..dd2ee98e7b2 100644
--- a/src/mongo/util/text_startuptest.cpp
+++ b/src/mongo/util/text_startuptest.cpp
@@ -25,10 +25,7 @@
* then also delete it in the license file.
*/
-#define MONGO_PCH_WHITELISTED
#include "mongo/platform/basic.h"
-#include "mongo/pch.h"
-#undef MONGO_PCH_WHITELISTED
#include "mongo/util/text.h"
diff --git a/src/mongo/util/winutil.h b/src/mongo/util/winutil.h
index d24adfa3650..07b1bd1448c 100644
--- a/src/mongo/util/winutil.h
+++ b/src/mongo/util/winutil.h
@@ -28,7 +28,6 @@
// * then also delete it in the license file.
// */
//
-// #include "mongo/pch.h"
#pragma once