summaryrefslogtreecommitdiff
path: root/src/mongo/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/base')
-rw-r--r--src/mongo/base/initializer.cpp4
-rw-r--r--src/mongo/base/secure_allocator.cpp4
-rw-r--r--src/mongo/base/status.cpp4
3 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/base/initializer.cpp b/src/mongo/base/initializer.cpp
index c64e5770049..0002295b1f4 100644
--- a/src/mongo/base/initializer.cpp
+++ b/src/mongo/base/initializer.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::kDefault
#include "mongo/platform/basic.h"
@@ -45,6 +44,9 @@
#include "mongo/util/quick_exit.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
+
namespace mongo {
class Initializer::Graph {
diff --git a/src/mongo/base/secure_allocator.cpp b/src/mongo/base/secure_allocator.cpp
index 47837cb5c7d..d99deaaa495 100644
--- a/src/mongo/base/secure_allocator.cpp
+++ b/src/mongo/base/secure_allocator.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
#include "mongo/platform/basic.h"
@@ -55,6 +54,9 @@
#include "mongo/util/static_immortal.h"
#include "mongo/util/text.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
+
namespace mongo::secure_allocator_details {
namespace {
diff --git a/src/mongo/base/status.cpp b/src/mongo/base/status.cpp
index 37dc2ea625a..b7f0b29302f 100644
--- a/src/mongo/base/status.cpp
+++ b/src/mongo/base/status.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl
#include <ostream>
#include <sstream>
@@ -38,6 +37,9 @@
#include "mongo/util/assert_util.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl
+
+
namespace mongo {
Status& Status::addContext(StringData reasonPrefix) {