diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-08-30 13:07:33 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-08-30 13:07:33 -0400 |
commit | cc38d23180248e5c5a6b21adf6ee7a2b4e670f0f (patch) | |
tree | 38095936c012a806827dd27a207d226da234e662 /src | |
parent | 7edcfa7cd390ebb2d991a9de529ac0e4f7ee26fe (diff) | |
download | mongo-cc38d23180248e5c5a6b21adf6ee7a2b4e670f0f.tar.gz |
SERVER-24395 Do not display startup warnings when querying for version
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/startup_warnings_mongod.cpp | 7 | ||||
-rw-r--r-- | src/mongo/util/processinfo_windows.cpp | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/startup_warnings_mongod.cpp b/src/mongo/db/startup_warnings_mongod.cpp index 30c8b261fdc..abfc763739f 100644 --- a/src/mongo/db/startup_warnings_mongod.cpp +++ b/src/mongo/db/startup_warnings_mongod.cpp @@ -360,6 +360,13 @@ void logMongodStartupWarnings(const StorageGlobalParams& storageParams, << startupWarningsLog; warned = true; } + + if (p.isDataFileZeroingNeeded()) { + log() << "Hotfix KB2731284 or later update is not installed, will zero-out data files." + << startupWarningsLog; + warned = true; + } + #endif // #ifdef _WIN32 if (storageParams.engine == "ephemeralForTest") { diff --git a/src/mongo/util/processinfo_windows.cpp b/src/mongo/util/processinfo_windows.cpp index 0e9cb8cc578..a4346cf7c74 100644 --- a/src/mongo/util/processinfo_windows.cpp +++ b/src/mongo/util/processinfo_windows.cpp @@ -326,12 +326,8 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { // if ((osvi.wServicePackMajor >= 0) && (osvi.wServicePackMajor < 2)) { if (isKB2731284OrLaterUpdateInstalled()) { - log() << "Hotfix KB2731284 or later update is installed, no need " - "to zero-out data files"; fileZeroNeeded = false; } else { - log() << "Hotfix KB2731284 or later update is not installed, will " - "zero-out data files"; fileZeroNeeded = true; } } |