summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo.cpp
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2018-03-13 14:58:04 -0400
committerRobert Guo <robert.guo@10gen.com>2018-03-15 10:14:34 -0400
commitebcfc62197744ffe0bb77a404a8e210c2100de31 (patch)
tree0f9ce5d4a564abb207045d0765a7b77281de0cad /src/mongo/util/processinfo.cpp
parent137bae8a3739545564cef631e33680108e767330 (diff)
downloadmongo-ebcfc62197744ffe0bb77a404a8e210c2100de31.tar.gz
SERVER-33643 refactor processInfo to no longer depend on global
initialization.
Diffstat (limited to 'src/mongo/util/processinfo.cpp')
-rw-r--r--src/mongo/util/processinfo.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mongo/util/processinfo.cpp b/src/mongo/util/processinfo.cpp
index 987c9875406..fcd75b7daa3 100644
--- a/src/mongo/util/processinfo.cpp
+++ b/src/mongo/util/processinfo.cpp
@@ -92,22 +92,4 @@ private:
bool writePidFile(const string& path) {
return pidFileWiper.write(path);
}
-
-ProcessInfo::SystemInfo* ProcessInfo::systemInfo = NULL;
-
-void ProcessInfo::initializeSystemInfo() {
- if (systemInfo == NULL) {
- systemInfo = new SystemInfo();
- }
-}
-
-/**
- * We need this get the system page size for the secure allocator, which the enterprise modules need
- * for storage for command line parameters.
- */
-MONGO_INITIALIZER_GENERAL(SystemInfo, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS)
-(InitializerContext* context) {
- ProcessInfo::initializeSystemInfo();
- return Status::OK();
-}
-}
+} // namespace mongo