summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2022-05-05 21:27:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-06 00:08:12 +0000
commit330458e81f9baa3f936d639dc3edbe1a8c4c5a32 (patch)
tree276be3a42c0a9aaff01340157a6fddd80509d831 /src/mongo/embedded
parent6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a (diff)
downloadmongo-330458e81f9baa3f936d639dc3edbe1a8c4c5a32.tar.gz
SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includes
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r--src/mongo/embedded/embedded.cpp3
-rw-r--r--src/mongo/embedded/embedded_ismaster.cpp4
-rw-r--r--src/mongo/embedded/embedded_options.cpp4
-rw-r--r--src/mongo/embedded/index_builds_coordinator_embedded.cpp4
-rw-r--r--src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp4
-rw-r--r--src/mongo/embedded/replication_coordinator_embedded.cpp4
-rw-r--r--src/mongo/embedded/service_entry_point_embedded.cpp4
7 files changed, 20 insertions, 7 deletions
diff --git a/src/mongo/embedded/embedded.cpp b/src/mongo/embedded/embedded.cpp
index eb2549573b5..907e82e655a 100644
--- a/src/mongo/embedded/embedded.cpp
+++ b/src/mongo/embedded/embedded.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -79,6 +78,8 @@
#include <boost/filesystem.hpp>
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
namespace mongo {
namespace embedded {
diff --git a/src/mongo/embedded/embedded_ismaster.cpp b/src/mongo/embedded/embedded_ismaster.cpp
index a9f6763952e..b2a26796d62 100644
--- a/src/mongo/embedded/embedded_ismaster.cpp
+++ b/src/mongo/embedded/embedded_ismaster.cpp
@@ -26,7 +26,6 @@
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand
#include "mongo/platform/basic.h"
@@ -36,6 +35,9 @@
#include "mongo/db/wire_version.h"
#include "mongo/rpc/metadata/client_metadata.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand
+
+
namespace mongo {
namespace {
diff --git a/src/mongo/embedded/embedded_options.cpp b/src/mongo/embedded/embedded_options.cpp
index 49649132c7d..5699e55cc25 100644
--- a/src/mongo/embedded/embedded_options.cpp
+++ b/src/mongo/embedded/embedded_options.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl
#include "mongo/embedded/embedded_options.h"
@@ -39,6 +38,9 @@
#include <boost/filesystem.hpp>
#include <string>
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl
+
+
namespace mongo {
namespace embedded {
diff --git a/src/mongo/embedded/index_builds_coordinator_embedded.cpp b/src/mongo/embedded/index_builds_coordinator_embedded.cpp
index d541528a492..a92249c1a35 100644
--- a/src/mongo/embedded/index_builds_coordinator_embedded.cpp
+++ b/src/mongo/embedded/index_builds_coordinator_embedded.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -38,6 +37,9 @@
#include "mongo/db/service_context.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
+
namespace mongo {
void IndexBuildsCoordinatorEmbedded::shutdown(OperationContext* opCtx) {}
diff --git a/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp b/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
index 23d84deb3f6..fc67b87f200 100644
--- a/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
+++ b/src/mongo/embedded/mongoc_embedded/mongoc_embedded_test.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
#include "mongo/platform/basic.h"
@@ -52,6 +51,9 @@
#include "mongo/util/quick_exit.h"
#include "mongo/util/signal_handlers_synchronous.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
+
+
namespace moe = mongo::optionenvironment;
mongo_embedded_v1_lib* global_lib_handle;
diff --git a/src/mongo/embedded/replication_coordinator_embedded.cpp b/src/mongo/embedded/replication_coordinator_embedded.cpp
index d0182bfce59..1e20d7cf362 100644
--- a/src/mongo/embedded/replication_coordinator_embedded.cpp
+++ b/src/mongo/embedded/replication_coordinator_embedded.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kReplication
#include "mongo/platform/basic.h"
@@ -37,6 +36,9 @@
#include "mongo/db/repl/repl_set_config.h"
#include "mongo/embedded/not_implemented.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kReplication
+
+
namespace mongo {
namespace embedded {
diff --git a/src/mongo/embedded/service_entry_point_embedded.cpp b/src/mongo/embedded/service_entry_point_embedded.cpp
index b02c13c8421..f2485cbd8dc 100644
--- a/src/mongo/embedded/service_entry_point_embedded.cpp
+++ b/src/mongo/embedded/service_entry_point_embedded.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand
#include "mongo/platform/basic.h"
@@ -40,6 +39,9 @@
#include "mongo/embedded/periodic_runner_embedded.h"
#include "mongo/transport/service_executor.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand
+
+
namespace mongo {
namespace {