summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp38
1 files changed, 23 insertions, 15 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp
index ec034eccc34..da0e63a957a 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_init.cpp
@@ -51,6 +51,7 @@
#include "mongo/db/storage/wiredtiger/wiredtiger_record_store.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_server_status.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_util.h"
+#include "mongo/logv2/log.h"
#include "mongo/util/log.h"
#include "mongo/util/processinfo.h"
@@ -67,7 +68,7 @@ public:
virtual StorageEngine* create(const StorageGlobalParams& params,
const StorageEngineLockFile* lockFile) const {
if (lockFile && lockFile->createdByUncleanShutdown()) {
- warning() << "Recovering data from the last clean checkpoint.";
+ LOGV2_WARNING(22302, "Recovering data from the last clean checkpoint.");
}
#if defined(__linux__)
@@ -79,13 +80,16 @@ public:
int ret = statfs(params.dbpath.c_str(), &fs_stats);
if (ret == 0 && fs_stats.f_type == EXT4_SUPER_MAGIC) {
- log() << startupWarningsLog;
- log() << "** WARNING: Using the XFS filesystem is strongly recommended with the "
- "WiredTiger storage engine"
- << startupWarningsLog;
- log() << "** See "
- "http://dochub.mongodb.org/core/prodnotes-filesystem"
- << startupWarningsLog;
+ LOGV2_OPTIONS(22296, {logv2::LogTag::kStartupWarnings}, "");
+ LOGV2_OPTIONS(
+ 22297,
+ {logv2::LogTag::kStartupWarnings},
+ "** WARNING: Using the XFS filesystem is strongly recommended with the "
+ "WiredTiger storage engine");
+ LOGV2_OPTIONS(22298,
+ {logv2::LogTag::kStartupWarnings},
+ "** See "
+ "http://dochub.mongodb.org/core/prodnotes-filesystem");
}
}
#endif
@@ -95,13 +99,17 @@ public:
ProcessInfo p;
if (p.supported()) {
if (cacheMB > memoryThresholdPercentage * p.getMemSizeMB()) {
- log() << startupWarningsLog;
- log() << "** WARNING: The configured WiredTiger cache size is more than "
- << memoryThresholdPercentage * 100 << "% of available RAM."
- << startupWarningsLog;
- log() << "** See "
- "http://dochub.mongodb.org/core/faq-memory-diagnostics-wt"
- << startupWarningsLog;
+ LOGV2_OPTIONS(22299, {logv2::LogTag::kStartupWarnings}, "");
+ LOGV2_OPTIONS(22300,
+ {logv2::LogTag::kStartupWarnings},
+ "** WARNING: The configured WiredTiger cache size is more than "
+ "{memoryThresholdPercentage_100}% of available RAM.",
+ "memoryThresholdPercentage_100"_attr =
+ memoryThresholdPercentage * 100);
+ LOGV2_OPTIONS(22301,
+ {logv2::LogTag::kStartupWarnings},
+ "** See "
+ "http://dochub.mongodb.org/core/faq-memory-diagnostics-wt");
}
}
const bool ephemeral = false;