summaryrefslogtreecommitdiff
path: root/src/mongo/db/startup_warnings_mongod.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/startup_warnings_mongod.h')
-rw-r--r--src/mongo/db/startup_warnings_mongod.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/src/mongo/db/startup_warnings_mongod.h b/src/mongo/db/startup_warnings_mongod.h
index f53e1ce9daa..b1dbbd21b5c 100644
--- a/src/mongo/db/startup_warnings_mongod.h
+++ b/src/mongo/db/startup_warnings_mongod.h
@@ -31,30 +31,28 @@
namespace mongo {
- struct StorageGlobalParams;
+struct StorageGlobalParams;
- class StartupWarningsMongod {
- private:
- StartupWarningsMongod();
+class StartupWarningsMongod {
+private:
+ StartupWarningsMongod();
- public:
- /**
- * Reads Transparent HugePages kernel parameter in sysfs directory.
- * Linux only.
- */
- static StatusWith<std::string> readTransparentHugePagesParameter(
- const std::string& parameter);
+public:
+ /**
+ * Reads Transparent HugePages kernel parameter in sysfs directory.
+ * Linux only.
+ */
+ static StatusWith<std::string> readTransparentHugePagesParameter(const std::string& parameter);
- /**
- * For testing only.
- * Supports alternate directory for transparent huge pages files.
- */
- static StatusWith<std::string> readTransparentHugePagesParameter(
- const std::string& parameter,
- const std::string& directory);
- };
+ /**
+ * For testing only.
+ * Supports alternate directory for transparent huge pages files.
+ */
+ static StatusWith<std::string> readTransparentHugePagesParameter(const std::string& parameter,
+ const std::string& directory);
+};
- // Checks various startup conditions and logs any necessary warnings that
- // are specific to the mongod process.
- void logMongodStartupWarnings(const StorageGlobalParams& params);
-} // namespace mongo
+// Checks various startup conditions and logs any necessary warnings that
+// are specific to the mongod process.
+void logMongodStartupWarnings(const StorageGlobalParams& params);
+} // namespace mongo